Causes of impotence are many and include heart disease, high cholesterol, high blood pressure, obesity, metabolic syndrome, Parkinson's disease, Peyronie's disease, substance abuse, sleep disorders, BPH treatments, relationship problems, blood vessel diseases (such as peripheral vascular disease and others), systemic disease, hormonal imbalance, and medications (such as blood pressure and heart medications).
Certain types of blood pressure medications, antiulcer drugs, antihistamines, tranquilizers (especially before intercourse), antifungals (hetoconazole), antipsychotics, antianxiety drugs, and antidepressants, known as selective serotonin reuptake inhibitors (SSRIs, including Prozac and Paxil), can interfere with erectile function. Smoking, excessive alcohol consumption, and illicit drug use may also contribute. In rare cases, low levels of the male hormone testosterone may contribute to erectile failure. Finally, psychological factors, such as stress, guilt, or anxiety, may also play a role, even when the impotence is primarily due to organic causes.
Acetylcholine released by the parasympathetic nerves is thought to act primarily on endothelial cells to release a second nonadrenergic-noncholinergic carrier of the signal that relaxes the trabecular smooth muscle. Nitric oxide released by the endothelial cells, and possibly also of neural origin, is currently thought to be the leading of several candidates as this nonadrenergic-noncholinergic transmitter; but this has not yet been conclusively demonstrated to the exclusion of other potentially important substances (e.g., vasoactive intestinal polypeptide). The relaxing effect of nitric oxide on the trabecular smooth muscle may be mediated through its stimulation of guanylate cyclase and the production of cyclic guanosine monophosphate (cGMP), which would then function as a second messenger in this system.
Erectile dysfunction (ED) affects 50% of men older than 40 years,  exerting substantial effects on quality of life.  This common problem is complex and involves multiple pathways. Penile erections are produced by an integration of physiologic processes involving the central nervous, peripheral nervous, hormonal, and vascular systems. Any abnormality in these systems, whether from medication or disease, has a significant impact on the ability to develop and sustain an erection, ejaculate, and experience orgasm.
For younger men, erection problems usually go hand-in-hand with anxiety. It goes something like this. He fancies you and wants to turn you on. But he’s also worried he might not get, or keep, his erection (particularly if he really likes you and/or if this has been a problem in past relationships). These worries mean that when you try and have sex he doesn’t get hard at all, or loses his erection when he tries to penetrate you.
The nerves and endothelium of sinusoids and vessels in the penis produce and release transmitters and modulators that control the contractile state of corporal smooth muscles. Although the membrane receptors play an important role, downstream signaling pathways are also important. The RhoA–Rho kinase pathway is involved in the regulation of cavernosal smooth muscle contraction. 
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
There have been rare reports of priapism (prolonged and painful erections lasting more than six hours) with the use of PDE5 inhibitors such as sildenafil, vardenafil, and tadalafil. Patients with blood cell diseases such as sickle cell anemia, leukemia, and multiple myeloma have higher than normal risks of developing priapism. Untreated priapism can cause injury to the penis and lead to permanent impotence. Therefore, if your erection lasts four hours, you should seek emergency medical care.
Psychosocial problems are important and may cause erectile dysfunction by themselves or together with other causes of erectile dysfunction, such as diabetes and heart disease. Relationships are complicated and many factors cause tensions, which can affect sexual relations. For some men, these problems can become ongoing and it can help to talk through the issue with a skilled counsellor. It is important to know that the longer erectile dysfunction is left untreated, the greater the effect on relationships. This is another reason why early treatment of erectile dysfunction is important.
Impotence, also called erectile dysfunction, in general, the inability of a man to achieve or maintain penile erection and hence the inability to participate fully in sexual intercourse. In its broadest sense the term impotence refers to the inability to become sexually aroused; in this sense it can apply to women as well as to men. In common practice, however, the term has traditionally been used to describe only male sexual dysfunctions. Professional sex therapists, while they identify two distinct dysfunctions as forms of impotence, prefer not to use the term impotence per se. Thus, because of its pejorative connotation in lay usage and because of confusion about its definition, the word impotence has been eliminated from the technical vocabulary in favour of the term “erectile dysfunction.”
Some may use alcohol as a way to get into the mood and overcome some of the nerves associated with having sex, but too much of a good thing can actually backfire. In fact, having a long history of alcohol abuse may lead to long-term erectile dysfunction. As many as 70 percent of men with chronic erectile dysfunction also have a history of alcohol abuse.
Goodmoring I want to make sure I keep my promise with dr.abulumen and also to help people who are in need I was in weak ejaculation and erection I come to hear of doctor abulumen through a friend of mine I decide to give a try and am very happy to say this that am now free from this problem, dr abulumen cured me I don’t know how he did it but thank god for his help if you need his help you can contact him now on his email DR.ABULUMENSPELLHOME@GMAIL.COM
Circulatory problems: An erection occurs when the penis fills with blood and a valve at the base of the penis traps it. Diabetes, high blood pressure, cholesterol, clots, and atherosclerosis (hardening of the arteries) can all interfere with this process. Such circulatory problems are the number one cause of erectile dysfunction. Frequently, erectile dysfunction is the first noticeable symptom of cardiovascular disease.
Having erection trouble from time to time isn't necessarily a cause for concern. If erectile dysfunction is an ongoing issue, however, it can cause stress, affect your self-confidence and contribute to relationship problems. Problems getting or keeping an erection can also be a sign of an underlying health condition that needs treatment and a risk factor for heart disease.