Hi there, thank you for posting your question. My answer is not intended as a substitute to visiting your own doctor but I hope I can be of some little help.
I am not sure that your erection problem has much to do with your lifestyle actually. It is more likely connected with some performance anxiety that you may not be even aware of.
I would need to know more about your history.
If you would like to receive a free copy of my information packed e-book on this subject then please order one through my website below. I am only offering this gift while the site is under construction.
Dr Andrew Rynne.
www.andrewrynne.com