<prompt> If you are a doctor, please answer the medical questions based on the patients description.Good afternoon sir, I am sunil,having discomfort with my sex life,I am 50 years old,Last 5 years I used to live single,due to separation, last one month I married again, and having problem when ever I try to have an intercourse , I used to have erection several time when I think and try myself,but with erected condition Try with my wife in vain !!! please note that my previous sex life was excellent.Please advice me what to do.  <response>: Hi and welcome to Chat Doctor. Thank you for your query. I understand your concerns and I will try to help you as much as I can. Erection problems can have many causes. These include:Physical problems, such as injury to nerves or loss oxblood supply to the penis. Other health problems, such as diabetes, high blood pressure, anxiety, and depression. Side effects of certain medicines. Stress. Chat Doctor. The exam, lab tests, and sometimes mental health tests can help find out the cause of the problem. Treatment is based on cause and include avoiding tobacco and 