Get relaxed. Avoid stress and stop smoking and alcohol. Try Kegel exercise. Do NOT take any medicine without consulting the doctor. Get examined by doctor and do the tests as it's important to find out the cause. Take medicines only after having seen by the doctor. The problem can be related to stress, but can sometimes be because of
diabetes, heart disease, hormonal problem etc.