Hello,
Welcome to the ehealthforum. An erection problem is the inability to get or maintain an erection that is firm enough for a man to have intercourse. If the condition persists, the medical term is erectile dysfunction.
In most men of your age, the cause is often psychological. Other medical causes may be diabetes, high blood pressure, heart or thyroid conditions, poor circulation, low testosterone, depression, spinal cord and neurological causes.
To exactly pinpoint a diagnosis you need to get a complete examination done from a urologist and get your blood pressure, blood sugar levels, thyroid hormones, testosterone levels and a neurological examination of the testicles and penis done.
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps. Take care and please do keep me posted on how you are doing.