Sexual stimulation causes the release of neurotransmitters from cavernosal nerve endings and relaxation factors from endothelial cells lining the sinusoids. NOS produces NO from L-arginine, and this, in turn, produces other muscle-relaxing chemicals, such as cGMP and cyclic adenosine monophosphate (cAMP), which work via calcium channel and protein kinase mechanisms (see the image below). This results in the relaxation of smooth muscle in the arteries and arterioles that supply the erectile tissue, producing a dramatic increase in penile blood flow.
Everyone knows that regular exercise is good for the body and the mind, and in many cases, exercise can be good for relieving stress and helping men’s bodies produce more testosterone. In some cases, however, exercise can be detrimental. This is the case in cycling as long and regular rides can cause the nerves in the perineum to be compacted, leading to a loss of feeling in the penis and/or testicles. Over time, this nerve compaction and damage may lead to either erectile dysfunction or ejaculatory dysfunction.
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.
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.”
There are no formal tests to diagnose erectile dysfunction. Some blood tests are generally done to exclude underlying disease, such as hypogonadism and prolactinoma. Impotence is also related to generally poor physical health, poor dietary habits, obesity, and most specifically cardiovascular disease such as coronary artery disease and peripheral vascular disease. Therefore, a thorough physical examination is helpful, in particular the simple search for a previously undetected groin hernia since it can affect sexual functions in men and is easily curable.
Men with physical causes of ED have options, including such medicines as sildenafil (Viagra®), vardenafil (Levitra®), or tadalafil (Cialis®). Men who use nitroglycerin products and those who should avoid sexual activity because of cardiovascular disease shouldn’t take these drugs. Other treatment modalities include use of a vacuum pump or injection of a substance (papaverine) into the penis to increase blood flow to the penis. Men can also have surgery to put a prosthesis into the penis.
In the short term, alcohol relaxes muscles in the penis, letting blood to flow in (which is a good thing). However, alcohol also prevents other blood vessels from closing and trapping all the extra blood. Erections depend on trapping increased blood flow in the erectile tissue of the penis. If you don’t trap that extra blood, you don’t get an erection. In the long run, excessive alcohol consumption can cause liver scarring, high blood pressure, and can damage your blood vessels resulting in erectile dysfunction.
ED is defined as the inability to achieve a full erection or the inability to maintain an erection adequate for sexual intimacy. Other types of sexual dysfunction such as premature ejaculation and low libido may occur; however, the most common and disruptive problem in men is ED. Although most men will experience periodic episodes of ED, these episodes tend to become more frequent with advancing age.
Whatever happens, remember there are still ways you can have fun and be intimate even if your partner can’t get an erection. Exchanging sexy texts, reading erotic literature, and indulging in sensual massage can all help to relax, inspire and increase intimacy. Of course, every couple is different and it may take a while to find out what works for you.
It appears that testosterone has NOS-independent pathways as well. In one study, castrated rats were implanted with testosterone pellets and then divided into a group that received an NOS inhibitor (L-nitro-L-arginine methyl ester [L-NAME]) and a control group that received no enzyme.  The castrated rats that were given testosterone pellets and L-NAME still had partial erections, a result suggesting the presence of a pathway independent of NOS activity.
Vacuum devices for ED, also called pumps, offer an alternative to medication. The penis is placed inside a cylinder. A pump draws air out of the cylinder, creating a partial vacuum around the penis. This causes it to fill with blood, leading to an erection. An elastic band worn around the base of the penis maintains the erection during intercourse.
Medications: Many common medicines produce erectile dysfunction as a side effect. Medicines that can cause erectile dysfunction include many used to treat high blood pressure, antihistamines, antidepressants, tranquilizers, and appetite suppressants. Examples of common medicines that can cause erectile dysfunction include propranolol (Inderal) or other beta-blockers, hydrochlorothiazide, digoxin (Lanoxin), amitriptyline (Elavil), famotidine (Pepcid), cimetidine (Tagamet), metoclopramide (Reglan), naproxen, indomethacin (Indocin), lithium (Eskalith, Lithobid), verapamil (Calan, Verelan, Isoptin), phenytoin (Dilantin), gemfibrozil (Lopid), amphetamine/dextroamphetamine (Adderall), and phentermine. Prostate cancer medications that lower testosterone levels such as leuprolide (Lupron) may affect erectile function. Some chemotherapies such as cyclophosphamide (Cytoxan) may affect erectile function.
In other words, there are dozens of reasons he might not be getting it up, which have absolutely nothing to do with your relationship. Honestly, there's just no way for me to give you specific advice here. If it's a serious problem, you should encourage him to check in with his primary care physician first, and then, perhaps, a therapist, in the nicest way possible.
One report from a recent community survey concluded that erectile failure was the leading complaint of males attending sex therapy clinics. Other studies have shown that erectile disorders are the primary concern of sex therapy patients in treatment. This is consistent with the view that erectile dysfunction may be associated with depression, loss of self-esteem, poor self-image, increased anxiety or tension with one's sexual partner, and/or fear and anxiety associated with contracting sexually transmitted diseases, including AIDS.
It doesn't really matter what they are — sexual turnoffs vary wildly from person to person. But if the person you're getting it on with is doing stuff that's taking you out of the mood — even if it's stuff you feel like you're supposed to enjoy — it's time to swallow your pride and say something. Keeping it a secret might be saving you an awkward conversation in the short term, but in the long term, it could be seriously undermining your sex life.
Appallingly little is known about the prevalence of erectile dysfunction in the United States and how this prevalence varies according to individual characteristics (age, race, ethnicity, socioeconomic status, and concomitant diseases and conditions). Data on erectile dysfunction available from the 1940's applied to the present U.S. male population produce an estimate of erectile dysfunction prevalence of 7 million.
In exchange for political impotence, they would be mostly left alone and allowed to get rich. — Paul Mozur, New York Times, "Inside China’s Dystopian Dreams: A.I., Shame and Lots of Cameras," 8 July 2018 Their suspicion is compounded by rumors that the polio vaccine causes impotence, death and, ironically, paralysis. — Meher Ahmad, New York Times, "Pakistan Has Just One New Polio Case, but Isn’t Declaring Victory Yet," 20 May 2018 Fighting back, even as an exercise in impotence, did a lot for McCain. — Alex Horton, Washington Post, "John McCain rebelled at the Naval Academy — and as a POW — long before he was a Senate maverick," 3 May 2018 Feelings of desperation and impotence are being felt throughout Central America, where the lawlessness, endemic poverty and levels of gang violence akin to war zones that have driven so many families from their homes show little signs of abating. — Washington Post, "Violence keeps Central Americans coming to US despite Trump," 21 June 2018 Uruguay's attacking impotence forced Oscar Tabarez to make two changes before the hour mark, with Nahitan Nandez and Giorgian de Arrascaeta replaced by Carlos Sanchez and Cristian Rodriguez. — SI.com, "Egypt 0-1 Uruguay: La Celeste Start With a Win as Gimenez Header Breaks Pharaohs' Hearts," 15 June 2018 It was fueled by physician ignorance and impotence, the habit of looking askance at patients whose symptoms could not be explained, and the arrival in the U.S. of German psychoanalysts who were disciples of Sigmund Freud. — Jim Carrier, STAT, "Lobotomies were once used to treat this gut disease, part of a shameful medical history," 12 June 2018 That signing's top attribute had better be goal-scoring, because the Sounders simply can't sustain with this level of attacking impotence. — Avi Creditor, SI.com, "The MLS XI, Week 14: Don't Hold Your Breath for an MLS Cup Threematch," 4 June 2018 Prostate cancer surgery in particular can have severe results, including incontinence and impotence. — Steven Petrow, Washington Post, "Watching but not treating cancer can be hard. Sometimes it’s the right approach.," 20 May 2018
Endocrine evaluation consisting of a morning serum testosterone is generally indicated. Measurement of serum prolactin may be indicated. A low testosterone level merits repeat measurement together with assessment of luteinizing hormone (LH), follicle-stimulating hormone (FSH), and prolactin levels. Other tests may be helpful in excluding unrecognized systemic disease and include a complete blood count, urinalysis, creatinine, lipid profile, fasting blood sugar, and thyroid function studies.
Studies to further define vasculogenic disorders include pharmacologic duplex grey scale/color ultrasonography, pharmacologic dynamic infusion cavernosometry/ cavernosography, and pharmacologic pelvic/penile angiography. Cavernosometry, duplex ultrasonography, and angiography performed either alone or in conjunction with intracavernous pharmacologic injection of vasodilator agents rely on complete arterial and cavernosal smooth muscle relaxation to evaluate arterial and veno-occlusive function. The clinical effectiveness of these invasive studies is severely limited by several factors, including the lack of normative data, operator dependence, variable interpretation of results, and poor predictability of therapeutic outcomes of arterial and venous surgery. At the present time these studies might best be done in referral centers with specific expertise and interest in investigation of the vascular aspects of erectile dysfunction. Further clinical research is necessary to standardize methodology and interpretation, to obtain control data on normals (as stratified according to age), and to define what constitutes normality in order to assess the value of these tests in their diagnostic accuracy and in their ability to predict treatment outcome in men with erectile dysfunction.
In men of all ages, erectile failure may diminish willingness to initiate sexual relationships because of fear of inadequate sexual performance or rejection. Because males, especially older males, are particularly sensitive to the social support of intimate relationships, withdrawal from these relationships because of such fears may have a negative effect on their overall health.
Parasympathetic input allows erection by relaxation of trabecular smooth muscle and dilation of the helicine arteries of the penis. This leads to expansion of the lacunar spaces and entrapment of blood by compressing venules against the tunica albuginea, a process referred to as the corporal veno-occlusive mechanism. The tunica albuginea must have sufficient stiffness to compress the venules penetrating it so that venous outflow is blocked and sufficient tumescence and rigidity can occur.
Injection of vasodilator substances into the corpora of the penis has provided a new therapeutic technique for a variety of causes of erectile dysfunction. The most effective and well-studied agents are papaverine, phentolamine, and prostaglandin E[sub 1]. These have been used either singly or in combination. Use of these agents occasionally causes priapism (inappropriately persistent erections). This appears to have been seen most commonly with papaverine. Priapism is treated with adrenergic agents, which can cause life-threatening hypertension in patients receiving monoamine oxidase inhibitors. Use of the penile vasodilators also can be problematic in patients who cannot tolerate transient hypotension, those with severe psychiatric disease, those with poor manual dexterity, those with poor vision, and those receiving anticoagulant therapy. Liver function tests should be obtained in those being treated with papaverine alone. Prostaglandin E[sub 1] can be used together with papaverine and phentolamine to decrease the incidence of side effects such as pain, penile corporal fibrosis, fibrotic nodules, hypotension, and priapism. Further study of the efficacy of multitherapy versus monotherapy and of the relative complications and safety of each approach is indicated. Although these agents have not received FDA approval for this indication, they are in widespread clinical use. Patients treated with these agents should give full informed consent. There is a high rate of patient dropout, often early in the treatment. Whether this is related to side effects, lack of spontaneity in sexual relations, or general loss of interest is unclear. Patient education and followup support might improve compliance and lessen the dropout rate. However, the reasons for the high dropout rate need to be determined and quantified.
Erections are more complicated than you think. Your brain, nerves, heart, blood vessels, and a whole lot of hormones have to work together perfectly or nothing happens. It’s a lot to ask, and sometimes things break down. And while ED happens to most guys at some point in their lives, erectile dysfunction isn’t something you can just ignore and hope it goes away.