stress ,anxiety, depression; too much of
alcohol ,smoking ;injury to pelvic area etc. I suggest you should avoid
alcohol and smoking if you have habit.
You should also consult a urologist and get these causes ruled out.
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps.