Welcome to theLoveLogic. Have you ever sought professional help for your issue? Are there any thoughts that enter your mind before you attempt intercourse? Do a little research on Google for Erectile dysfunction. There are so many positive treatments for this dysfunction that I have no doubt you can be on your way to a normal sex life with a little professional help and advice.
Check out the Mayo Clinic website:
Take care and stay positive!