A physical cause can be identified in about 80% of cases. These include cardiovascular disease, diabetes mellitus, neurological problems such as following prostatectomy, hypogonadism, and drug side effects. Psychological impotence is where erection or penetration fails due to thoughts or feelings; this is somewhat less frequent, in the order of about 10% of cases. In psychological impotence, there is a strong response to placebo treatment.
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.
If the structure of the penis is healthy (not fibrosed or scarred), the use of injectable drugs is almost always effective. If one chooses this therapy, a doctor or nurse will teach the individual how to perform the injections, and the urologist (specialist) must determine the appropriate dose. The dosage is adjusted to achieve an erection with adequate rigidity for no more than 90 minutes.
The penis contains three cylinders, the two corpora cavernosa, which are on the top of the penis (see figure 1 below). These two cylinders are involved in erections. The third cylinder contains the urethra, the tube that the urine and ejaculate passes through, runs along the underside of the penis. The corpus spongiosum surrounds the urethra. Spongy tissue that has muscles, fibrous tissues, veins, and arteries within it makes up the corpora cavernosa. The inside of the corpora cavernosa is like a sponge, with potential spaces that can fill with blood and distend (known as sinusoids). A layer of tissue that is like Saran Wrap, called the tunica albuginea, surrounds the corpora. Veins located just under the tunica albuginea drain blood out of the penis.
Similar to heart-disease-related to atherosclerosis (plaque formation within the blood vessels), the concept of bypassing or angiographically dilating and stenting penile arteries has been entertained recently with improvements in microvascular surgery and interventional radiology. However, the main drawback with most erectile dysfunction is the failure of vascular relaxation within the corpora cavernosa rather than the one feeding penile artery. Stenting or surgical grafting to bypass a blockage would be ideal for a single obstruction site along a penile artery. Because most erectile dysfunction pathology resides within the sponge-like vascular plexus of the penis, the ability of diffusely dilating and expanding the many vascular chambers of the penis is difficult to impossible. As such, unless the situation is that the penile artery was injured during a pelvic trauma, and the potential to bypass another vessel into the single penile artery, the concept of vascular reconstruction or angio-radiology stenting has very low yield.
VED involved placing the penis in a clear plastic tube where negative pressure created by the vacuum pump leads to penile engorgement and tumescence. Usually a constriction ring can be placed on the base of penis following penile engorgement. Some men complain of bruising, a “cold” penis and pain associated with the constriction ring; however, in some men with NED sensation may not be intact mitigating the side effects of VEDs. VEDs have reported effectiveness up to 90% in certain ED populations and it remains a non-invasive means to achieve and erection.
The dorsal artery provides for engorgement of the glans during erection, whereas the bulbourethral artery supplies the bulb and the corpus spongiosum. The cavernous artery effects tumescence of the corpus cavernosum and thus is principally responsible for erection. The cavernous artery gives off many helicine arteries, which supply the trabecular erectile tissue and the sinusoids. These helicine arteries are contracted and tortuous in the flaccid state and become dilated and straight during erection. 
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.
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.