A sail works best when its leading edge (the luff) is held at a small angle to the wind. The angle is critical but there is a simple way to find it. Watch the luff of the sail as you pull in the sheet.
Stop pulling when the luff stops flapping. To check that the sail is properly trimmed, slowly let out the sheet until the luff starts to flap, then pull it in again