The primary nerve fibers to the penis are from the dorsal nerve of the penis, a branch of the pudendal nerve. The cavernosal nerves are a part of the autonomic nervous system and incorporate both sympathetic and parasympathetic fibers. They travel posterolaterally along the prostate and enter the corpora cavernosa and corpus spongiosum to regulate blood flow during erection and detumescence. The dorsal somatic nerves are also branches of the pudendal nerves. They are primarily responsible for penile sensation. 
Melanocortin receptor agonists were found to induce erections serendipitously. A study investigating the dermatologic use of Melanotan-II (MT-II) was found to generate erections unexpectedly leading to the development of MTII derivatives for ED treatment (120). MT-II was initially used to induce pigment changes in the skin for artificial tanning but has been suspected to induce melanoma, however (121).
Robbins, C. L., Schick, V., Reece. M., Herbenick, D., Sanders, S. A. Dodge, B., & Fortenberry J. D., (2011, December 1). Prevalence, frequency, and associations of masturbation with partnered sexual behaviors among US adolescents. JAMA Pediatrics, 165(12), 1087–1093. Retrieved from https://jamanetwork.com/journals/jamapediatrics/fullarticle/1107656
Another study compared the response of surgically and medically castrated rabbits to vardenafil with that of control rabbits.  Castrated rabbits did not respond to vardenafil, whereas noncastrated rabbits did respond appropriately. This result suggests that a minimum amount of testosterone is necessary for PDE5 inhibitors to produce an erection.
Research has even found possible links to frequent ejaculation and a lower risk of prostate cancer. In one study of 32,000 men published in 2016 in the journal European Urology, for example, men who ejaculated at least 21 times per month while in their 20s were less likely to be diagnosed with prostate cancer than those who ejaculated four to seven times per month. And men who ejaculated more often in their 40s were 22 percent less likely to get a prostate cancer diagnosis.
Penile erection is managed by two mechanisms: the reflex erection, which is achieved by directly touching the penile shaft, and the psychogenic erection, which is achieved by erotic or emotional stimuli. The former uses the peripheral nerves and the lower parts of the spinal cord, whereas the latter uses the limbic system of the brain. In both cases, an intact neural system is required for a successful and complete erection. Stimulation of the penile shaft by the nervous system leads to the secretion of nitric oxide (NO), which causes the relaxation of smooth muscles of corpora cavernosa (the main erectile tissue of penis), and subsequently penile erection. Additionally, adequate levels of testosterone (produced by the testes) and an intact pituitary gland are required for the development of a healthy erectile system. As can be understood from the mechanisms of a normal erection, impotence may develop due to hormonal deficiency, disorders of the neural system, lack of adequate penile blood supply or psychological problems. Spinal cord injury causes sexual dysfunction including ED. Restriction of blood flow can arise from impaired endothelial function due to the usual causes associated with coronary artery disease, but can also be caused by prolonged exposure to bright light.
Factors that mediate contraction in the penis include noradrenaline, endothelin-1, neuropeptide Y, prostanoids, angiotensin II, and others not yet identified. Factors that mediate relaxation include acetylcholine, nitric oxide (NO), vasoactive intestinal polypeptide, pituitary adenylyl cyclase–activating peptide, calcitonin gene–related peptide, adrenomedullin, adenosine triphosphate, and adenosine prostanoids.
Can erectile dysfunction be reversed? Erectile dysfunction (ED) is a very common issue, and it can usually be reversed with lifestyle changes, counseling, medications, or surgery. While short-term treatments are available, addressing the underlying cause will usually resolve the condition. Learn about causes and effective methods of reversing ED here. Read now
L-arginine, an amino acid that is naturally present in the body and helps make nitric oxide, supports a successful erection. Nitric oxide is responsible for making the blood vessels relax, which helps sustain an erection for men. A 1999 study, observed the effects of six weeks of high-dose (5 grams/day) orally administered nitric oxide (NO) donor L-arginine on men with organic ED. Thirty-one percent of those who took 5 grams/day of L-arginine experienced significant improvements in sexual function. Burns told Medical Daily, “l-arginine and deer antler velvet” have been the most popular go-to natural treatments for men.
Nerves originating in the spinal cord and peripheral ganglia innervate the penis. There are autonomic (parasympathetic and sympathetic), and somatic separate and integrated pathways. The autonomic pathways neurons originate in the spinal cord and peripheral ganglia from the sympathetic and parasympathetic systems, respectively. They merge to form the cavernous nerves that travel alongside the prostate, enter the corpora cavernosa and corpus spongiosum to affect the neurovascular events required for tumescence and detumescence. The somatic nerves send sensory information from the penile skin, glans, and urethra via the dorsal penile nerve and pudendal nerve to the spinal cord. The somatic nerves also initiate contraction of the ischio- and bulbocavernosus muscles.
Does diabetes cause erectile dysfunction? Diabetes can lead to lower levels of testosterone, and this can result in erectile dysfunction. Controlling blood sugar levels, maintaining a healthy weight, getting exercise, and reducing stress are all ways of reducing this problem. Hormone therapy, Viagra, and counseling are some ways that medicine can help. Read now
Experiencing ED can also be a reason to try not penetrative sex. Try planning a sex session with your partner hat isn't focused on your erection at all. Things like kissing, licking, sucking, foreplay and teasing all are super stimulating and don't focus on penetration. Feel free to bring each other to orgasm using these ideas and see if you are able to relax and enjoy the experience. Many men feel like failures when their erections become unreliable. Having a few successful sexual sessions that lead to orgasm without penetration can put the fun back into having sex. Many couples find success using this technique and begin to reengage sexually instead of avoiding being sexual for fear of failure.
What happens is that the blood vessels of the penis are rather small, and a small amount of plaque in the penile arteries is going to result in erectile dysfunction. You need more plaque before the person’s actually symptomatic from a heart problem, but they’re linked. And so when anybody, any man has an erectile issue, it’s incumbent upon the physician to make certain that their cardiac status is healthy.
The first step in treating the patient with ED is to take a thorough sexual, medical, and psychosocial history. Questionnaires are available to assist clinicians in obtaining important patient data. (See Presentation.) Successful treatment of sexual dysfunction has been demonstrated to improve sexual intimacy and satisfaction, improve sexual aspects of quality of life, improve overall quality of life, and relieve symptoms of depression. (See Treatment.)
Hormone deficiency or hypogonadism, whether primary or secondary, has been thought to impact erectile function. Approximately a third of men in the European Male Aging Study demonstrated low testosterone, suggesting that hypogonadism is overrepresented among men with ED.11 Hormone deficiency, however, is less frequently the cause of ED than diabetes or vascular disease. Many entities with a strong relationship to ED also diminish bioavailable testosterone, including obesity, diabetes, and opioid use. Other hormones involved in testosterone metabolism or availability, like thyroid stimulating hormone and gonadotropins, also may impact erectile quality, presumably through regulating bioavailable testosterone. Understanding the relationship between testosterone and ED has been impaired by a lack of standardized measurement of this hormone and the cyclic nature of its release and consumption.
An occasional problem achieving an erection is nothing to worry about. But failure to do so more than 50% of the time at any age may indicate a condition that needs treatment. About 40% of men in their 40s report at least occasional problems getting and maintaining erections. So do more than half (52%) of men aged 40 to 70, and about 70% of men in their 70s.
They are the same muscles you use to stop the flow of urine from the bladder. Next time you are urinating, you can intentionally cut off the stream (don't make this a regular or repetitive activity) to identify the correct muscles. Once you have identified them, try squeezing and holding as long as possible 10 times in a row, three times a day as an optimal regimen.
However, a review of a United Kingdom medical record database found no evidence that the use of 5-alpha reductase inhibitors independently increase the risk for ED. In 71,849 men with benign prostatic hyperplasia (BPH), the risk of ED was not increased with the use of finasteride or dutasteride only (odds ratio [OR] 0.94), or a 5-alpha reductase inhibitor plus an alpha blocker (OR 0.92) compared with an alpha blocker only. In addition, the risk of ED was not increase in 12 346 men prescribed finasteride 1 mg for alopecia, compared with unexposed men with alopecia (OR 0.95). The risk of ED did increase with longer duration of BPH, regardless of drug exposure. 
Lifestyle choices that impair blood circulation can contribute to ED. Smoking, excessive drinking, and drug abuse may damage the blood vessels and reduce blood flow to the penis. Smoking makes men with atherosclerosis particularly vulnerable to ED. Being overweight and getting too little exercise also contribute to ED. Studies indicate that men who exercise regularly have a lower risk of ED.