Keeping a treat in your hand, move your hand in front of your dog and then up over their head, at which point they should sit. If your dog is jumping, your hand may be too high!
If your dog struggles to sit with this hand movement, it can be helpful to set your dog up against a wall as when they feel the wall; they will naturally sit. When your pup successfully sits, be sure to reward them with a treat.