If the condition persists, the medical term is
erectile dysfunction. Before deciding the treatment it is important to find out the cause which may be responsible for erectile dysfunction in your case. In most men of your age and since you were having regular erections earlier, the cause looks more like psychological. Other medical causes may be diabetes, high blood pressure, heart or thyroid conditions, poor circulation, low testosterone, depression, spinal cord and neurological causes.