Erections occur in response to tactile, olfactory, and visual stimuli. The ability to achieve and maintain a full erection depends not only on the penile portion of the process but also on the status of the peripheral nerves, the integrity of the vascular supply, and biochemical events within the corpora. The autonomic nervous system is involved in erection, orgasm, and tumescence. The parasympathetic nervous system is primarily involved in sustaining and maintaining an erection, which is derived from S2-S4 nerve roots.
Erectile dysfunction is the inability to develop or maintain an erection that is rigid enough to allow penetration of the vagina, and therefore functional sexual intercourse. Generally, the term erectile dysfunction is applied if this occurs frequently (75% of the time) over a significant period if time (several weeks to months). If this is the case, the term impotence may also be used.
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. 
First, medical conditions need to be ruled out. Let’s assume that you have never been diagnosed with a medical condition that is physically linked to erectile dysfunction, such as type 2 diabetes, obesity or heart disease. In this case you’re probably looking at a case of psychological impotence, given that there are no physical explanations for your difficulties.
One study by Palmer and colleagues evaluated sildenafil use in SB males with thoracic lesions (76). A prospective, blinded, randomized, placebo-controlled, dose-escalation, crossover study in 17 patients with SB and ED was performed. All study participates took sets of tablet in groups, two sets of placebo, one of 25 mg, and the last 50 mg. Overall response to the tablet sets was measured by IIEF response and self-report of erectile rigidity. Patients reported that taking 50 mg of sildenafil led to improved erections, duration of erections, frequency of erections and level of confidence compared to sildenafil 25 mg and more significantly compared to placebo. Of the five patients who reported side effects, two experienced mild hematological changes that reverted to baseline after study completion.
On the horizon is gene therapy that would deliver genes that produce products or proteins that may not be functioning properly in the penile tissue of men with ED. Replacement of these proteins may result in improvement in erectile function. Experimental animal models have demonstrated improvement in erectile function with gene therapy. Human studies may also demonstrate success with this therapy. Gene therapy may take a long time for regulatory approval and public acceptance.
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.
ICI Alprostadil may be used as a mixture with two other drugs to treat ED. This combination therapy called "bimix or trimix" is stronger than alprostadil alone and has become standard treatment for ED. Only the Alprostadil ingredient is FDA approved for ED. The amount of each drug used can be changed based on the severity of your ED, by an experienced health professional. You will be trained by your health professional on how to inject, how much to inject and how to safely raise the drug's dosage if necessary.