Thank you for asking. I can understand the distress you are through. It could be a problem of performance anxiety or Erectile dysfunction. A detailed information regarding the problem is required. Anxiety, stress, are important factors that affect sexual performance. Masturbation habit, concept and myth regarding sex, pornography use, etc are few important areas to be explored. There is a lot to be known about proper sexual practice or sexual hygiene. You must visit a sexologist or consult in detail. It appears to be a problem of performance anxiety.
Next Steps
Consult a sexologist. For more information regarding this you can consult directly on practo. The problem is completely treatable. With suitable medications and instructions, it can be cured.
Health Tips
It is treatable.