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.
Whenever I am prescribing a medication to a patient, I’m always asking myself, what can the patient do before requiring the medication? What changes do they have to make in order to reduce the amount of medication or preclude their even needing it? So a good candidate is somebody who has an understanding of a healthy lifestyle, about physical activity, about sleep, about nutrition, alcohol, smoking. So patients, individuals, have to do their share before they’re a candidate for anything. All right?
Although not proven, it is likely that erectile dysfunction can be prevented by good general health, paying particular attention to body weight, exercise, and cigarette smoking. For example, heart disease and diabetes are problems that can cause erectile dysfunction, and both are preventable through lifestyle changes such as sensible eating and regular exercise. Furthermore, early diagnosis and treatment of associated conditions like diabetes, hypertension and high cholesterol may prevent or delay erectile dysfunction, or stop the erectile dysfunction from getting more serious.
If laboratory tests are performed, they would normally start with an evaluation of your hormone status (testosterone or male hormone), particularly if one of your symptoms is low sexual desire (low libido). Blood tests for testosterone should ideally be taken early in the morning because that's when levels are usually at their highest. It is recommended that if the first testosterone level is low to repeat it as testosterone levels can vary. If the testosterone level is low, other blood tests, such a luteinizing hormone and prolactin, can help determine if there is a problem with the pituitary gland.
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.
When it comes to boosting sexual performance, many men will walk all over God’s green earth looking for ways to maintain a good sex life. Luckily men, all you have to do is walk — not run — 2 miles a day. This, along with other healthier lifestyle interventions can help obese men reduce their risk of ED, or even “reverse” current impotence, according to a 2005 study. This comes of importance, since maintaining a trim waistline is a good defense for ED, as men with a 42-inch waist are 50 percent more likely to have ED than those with a 32-inch waist. Getting to a healthy weight and maintaining it is a good strategy for preventing and treating ED.
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.
The association between low testosterone and ED is not entirely clear. Although these 2 processes certainly overlap in some instances, they are distinct entities. Some 2-21% of men have both hypogonadism and ED; however, it is unclear to what degree treating the former will improve erectile function.  About 35-40% of men with low testosterone see an improvement in their erections with testosterone replacement; however, almost 65% of these men see no improvement. 
The physical side effects of chemotherapy are usually temporary and resolve within one to two weeks after stopping the chemotherapy. However, chemotherapy agents, such as Ciplatin or Vincristine, may interfere with the nerves that control erection leading to possible impotence. Make sure you discuss potential side effects of cancer chemotherapy with your doctor or healthcare provider.
Alprostadil is injected into the side of penis with a very fine needle. It's of great value to have the first shot in the doctor's office before doing this on your own. Self-injection lessons should be given in your doctor's office by an experienced professional. The success rate for getting an erection firm enough to have sex is as high as 85% with this treatment. Many men who do not respond to oral PDE5 inhibitors can be ‘rescued' with ICI.