There are risks to prosthetic surgery and patients are counselled before the procedure. If there is a post-operative infection, the implant will likely be removed. The devices are reliable, but in the case of mechanical malfunction, the device or a part of the device will need to be replaced surgically. If a penile prosthesis is removed, other non-surgical treatments may no longer work.
Oral medicines: The best known ED medications are the Big Three: Viagra (sildenafil citrate, made by Pfizer, Inc.), Levitra (vardenafil HCl, made by Bayer and GlaxoSmithKline), and Cialis (tadalafil, made by Eli Lilly). The three are chemically very similar, and all have proven very effective. Because they are effective, convenient, and relatively inexpensive (about nine dollars per pill), these medicines have become the treatment of choice for most men experiencing ED.
Sexual dysfunction is highly prevalent in men and women. In the MMAS, 52% of the respondents reported some degree of erectile difficulty. Complete ED, defined as (1) the total inability to obtain or maintain an erection during sexual stimulation and (2) the absence of nocturnal erections, occurred in 10% of the respondents. Mild and moderate ED occurred in 17% and 25% of responders, respectively. 
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
Between 10 and 88% of patients diagnosed with cancer experience sexual problems following diagnosis and treatment. The prevalence varies according to the location and type of cancer, and the treatment modalities used. Sexuality may be affected by chemotherapy, alterations in body image due to weight change, hair loss or surgical disfigurement, hormonal changes, and cancer treatments that directly affect the pelvic region.
If you can't take one of these oral medications, your physician may have you try Caverject (alprostadil for injection), a hormone that you inject into your penis using a fine needle, or Muse (alprostadil urogenital), a tiny suppository that you insert into the tip of the penis. Both of these will bring on an erection within five to 15 minutes without sexual stimulation.
Induction of erection occurs after stimulation of the cavernous and pelvic nerve plexus. Conversely, stimulation of the sympathetic trunk leads to detumescence. The reflex erectile response requires that the sacral reflex arc remain intact. Tactile and sensory signals are received by the somatic sensory pathways and integrate with parasympathetic nuclei within the sacral spinal cord (S2-4) leading to induction of erection via cholinergic signaling. These reflexogenic erections remain intact with upper motor neuron injuries. Psychogenic erections do not require that the sacral reflex arc remain intact. In a cat models, spinal cord removal below L4/L5 led to absence of a reflexogenic erection but stimulation of the medial preoptic area (MPOA) or placement near a female cat in heat led to erection (5,6). Psychogenic erections occur via induction of central pathways traveling from the brain through the sympathetic chain. Non-penile sensory pathways induced by sight, sound, touch and smell travel through the MPOA to the erection centers within the cord T11-L2, and S2-S4 to induce erections (7). When a sacral lower motor neuron injury is present in men, below T12 these types of erections are more likely to occur (8). Spinal cord lesions above T9 are not associated with psychogenic erections (9). Rigidity of erections is less with psychogenic erections because the thoracolumbar sympathetic outflow may contain a decreased concentration of neurons compared to the parasympathetic outflow from the sacral spinal cord.
The neurovascular events that ultimately occur result in the inhibition of adrenergic tone and the release of the nonadrenergic, noncholinergic neurotransmitter, nitric oxide. Nitric oxide is believed to be released from nonadrenergic, noncholinergic nerves and endothelial cells. It subsequently stimulates the guanylate cyclase enzyme system in penile smooth muscle. This results in increased levels of cyclic guanosine monophosphate (cGMP) and ultimately in smooth muscle relaxation, enhancement of arterial inflow, and veno-occlusion, producing adequate firmness for sexual activity.
In addition, when research has shown a nutrient such as zinc or niacin to improve sexual function, it's usually in people who are deficient in it. So, before you stock up on over-the-counter nutritional supplements for ED, speak with your doctor. He can test you for deficiencies and steer you toward the most effective and safest way to treat your erectile dysfunction.
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
Supplements are popular and often cheaper than prescription drugs for ED. However, supplements have not been tested to see how well they work or if they are a safe treatment for ED. Patients should know that many over-the-counter drugs have been found on drug testing to have ‘bootlegged' PDE 5 Inhibitors as their main ingredient. The amounts of Viagra, Cialis, Levitra or Stendra that may be in these supplements is not under quality control and may differ from pill to pill. The FDA has issued consumer warnings and alerts.