Hi Welcome to HEALTHCARE MAGIC..
I have gone through your query and can understand your concern...
According to your symptoms, it appears that you have problem of
Erectile Dysfunction. In majority of the patients cause of erectile Dysfunction is mind related and due to performance anxiety.
Following measure will help you to boost up your confidence and getting good erection.
1) Practice regular exercise for 45 minutes followed by
meditation in the morning.
2) Take high protein diet rich in vegetables and fruits and
Vitamin A,C,D,E.
3) Avoid alcohol and smoking..
I also suspect that you do have anxiety problems than erectile dysfunction.
First you should visit a psychological counselor and ally all your fears and doubts about sex and
masturbation. Then according to his advice, visit a
sexologist who might diagnose whether you have impotency / erectile dysfunction etc.
Refer to a sexologist
Hope this information helps
Good luck.