Diabetes is an example of an endocrine disease that can cause a person to experience impotence. Diabetes affects the body’s ability to utilize the hormone insulin. One of the side effects associated with chronic diabetes is nerve damage. This affects penis sensations. Other complications associated with diabetes are impaired blood flow and hormone levels. Both of these factors can contribute to impotence.
The somatosensory pathways for erections originate in the penile skin, glans and urethra. Glans afferent sensory free nerve endings are 10-fold more than their corpuscular receptors, and are derived from Aδ and unmyelinated C fibers. The nerve endings coalesce to form the dorsal penile nerve along with other sensory nerve fibers. Through the pudendal nerve they enter the S2-4 nerve roots to terminate on spinal neurons and interneurons. The dorsal nerve is not purely somatic, however. Nerve bundles within the dorsal nerve contain nitric oxide (NO) synthase, found typically in autonomic nerves, and stimulation of the sympathetic chain can leak to evoked potentials from the dorsal nerve and vice versa (10-12).
Both ED and low testosterone (hypogonadism) increase with age. The incidence of the latter is 40% in men aged 45 years and older.  Testosterone is known to be important in mood, cognition, vitality, bone health, and muscle and fat composition. It also plays a key role in sexual dysfunction (eg, low libido, poor erection quality, ejaculatory or orgasmic dysfunction, reduced spontaneous erections, or reduced sexual activity). 
And surgery comes with its own serious risks, such as developing incontinence or impotence, while radiation can result in urinary problems. — Peter Loftus, WSJ, "Surgery Adds Three Years to Lives of Prostate-Cancer Patients, Study Finds," 12 Dec. 2018 Male-impotence pill Viagra began facing generic competition late last year, while the Lyrica pain treatment is expected to confront generics at the end of this year. — Jonathan D. Rockoff, WSJ, "Pfizer Narrows Guidance on Tougher Pricing, Generic Competition," 30 Oct. 2018 Arkham Horror Third Edition is a classic struggle of agency versus impotence, set in the uncanny world of H.P. Lovecraft’s Cthulhu mythos. — Charlie Theel, Ars Technica, "Arkham Horror Third Edition: The classic Lovecraft adventure returns," 24 Nov. 2018 There’s obviously a lot of anger and frustration here toward the US government at the moment—along with side effects like bottled rage and sometimes a creeping sense of ineptitude or impotence about our ability to do anything about it. — Corey Seymour, Vogue, "Pussy Riot's Nadya Tolokonnikova On Her New Guide To Activism, Raising The Next President Of Russia, And Her "Holy War" On Fairy Tales," 12 Oct. 2018 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
MSA is a neurodegenerative disease of undetermined etiology, where ED is an early prominent sign occurring in 40% of men at the time of diagnosis (46,47). ED occurs in the majority of patients and the exact cause of it is unknown (48). Like PD, MSA likely affects the dopaminergic pathways within the brain essential for arousal (49). Orthostatic hypotension (OH) as a causal factor has been refuted by evidence that sildenafil can overcome reduced filling pressures, and the ED usually precedes the development of OH (46,49,50). Similar to other neurologic disorders that lead to ED, other disease related factors such as psychosocial stress, the burden of chronic illness, changed appearance, fatigue, decreased fine motor movement of fingers, immobility and diminished self-esteem due to loss of independence may contribute as well (51).
Apomorphine is a non-selective D1/D2 receptor agonist with moderate efficacy and good tolerability in the treatment of mild ED (80). Apomorphine can be administered via subcutaneous injection or sublingually. However, studies have shows a lower efficacy for apomorphine compared to oral sildenafil (81,82). Apomorphine has a set role in the management of PD for non-motor symptoms, and has been reported to cause spontaneous erections and possible hypersexuality in PD men (83,84). Its role in the management of ED has been postulated for men with PD but should be considered as an alternative to sildenafil.
For obvious reasons, ED can be a sensitive subject, one that until relatively recently men were more likely to try to hide than to deal with. Fortunately, a deeper understanding of the variety of causes of erectile dysfunction has led to medications, therapies, and other treatments that can be more individualized and more likely to be effective—and more open discussion about addressing the concern.
Traditionally, erectile impotence (the classical definition of impotence) is the failure to achieve penile erection during intercourse. It may have either physical or psychological causes. Alcoholism, endocrine disease, and neurological disorders are typical physical causes. Psychological causes include anxiety over performance, hostility or other negative feelings toward the sexual partner, and stress, anxiety, depression, or other emotional conflicts outside of the relationship. Erectile impotence occasionally occurs with age and, although attributed by the individual to the aging process itself, it is usually secondary to disorders of aging, such as faulty blood circulation or prostate disease. In cases of impotence caused by blood vessel dysfunction, an insufficient supply of blood flows into the penis, or the blood diffuses out into adjacent tissues.
Alprostadil self-injection. With this method, you use a fine needle to inject alprostadil (Caverject Impulse, Edex) into the base or side of your penis. In some cases, medications generally used for other conditions are used for penile injections on their own or in combination. Examples include papaverine, alprostadil and phentolamine. Often these combination medications are known as bimix (if two medications are included) or trimix (if three are included).
With an inflatable implant, fluid-filled cylinders are placed lengthwise in the penis. Tubing joins these cylinders to a pump placed inside the scrotum (between the testicles). When the pump is engaged, pressure in the cylinders inflate the penis and makes it stiff. Inflatable implants make a normal looking erection and are natural feeling for your partner. Your surgeon may suggest a lubricant for your partner. With the implant, men can control firmness and, sometimes, the size of the erection. Implants allows a couple to be spontaneously intimate. There is generally no change to a man's feeling or orgasm.