Depending on the cause, erectile dysfunction (ED) may be curable, but the condition is almost always treatable for most men. The first step is to visit your doctor, because several health conditions -- and the medications that treat them -- can cause ED. For example, cardiovascular (heart and blood vessel) disease causes arteries to narrow, which decreases blood flow to the penis and can cause trouble getting or maintaining an erection.
Usually there will not be a specific treatment that will lead to the improvement of erectile dysfunction. However, there are treatments that will allow erections to happen and can be used to allow sexual activity to take place. There are three main types of treatments: non-invasive treatments such as tablet medicines and external devices (e.g. vacuum device); penile injections; or for men who have not had success with other treatments, surgery may be an option.
Stress is your body responding to your environment. And it’s a good thing—in limited doses. When you get stressed out your body makes chemicals like adrenaline that make you stronger, faster, fitter, and even able to think more clearly. Most people call this reaction the “fight-or-flight” response, and it’s a life-saver in dangerous situations. In a very real sense, adrenaline makes you a part-time superhero. The problems happen when your body deals with constant stress.
The nerves and endothelium of sinusoids and vessels in the penis produce and release transmitters and modulators that control the contractile state of corporal smooth muscles. Although the membrane receptors play an important role, downstream signaling pathways are also important. The RhoA–Rho kinase pathway is involved in the regulation of cavernosal smooth muscle contraction. 
Sexual stimulation causes the release of neurotransmitters from cavernosal nerve endings and relaxation factors from endothelial cells lining the sinusoids. NOS produces NO from L-arginine, and this, in turn, produces other muscle-relaxing chemicals, such as cGMP and cyclic adenosine monophosphate (cAMP), which work via calcium channel and protein kinase mechanisms (see the image below). This results in the relaxation of smooth muscle in the arteries and arterioles that supply the erectile tissue, producing a dramatic increase in penile blood flow.
Viagra is available in three strengths: 25 mg, 50 mg, and 100 mg. Viagra works best if taken on an empty stomach about 30-45 minutes before sexual activity. Optimal results may not be realized until the medication has been tried six to eight times. Viagra may be used cautiously with alpha-blocker medications as long as sufficient time has passed between their dosing.
It is important to understand that ED is frequently, if not usually, directly related to endothelial dysfunction, and that the release of NO by the vasculature of the penile arteries is directly related to the function of intact, healthy endothelium. In the face of endothelial dysfunction, the process of erection fails to occur in a normal fashion.16
As with most other organ system in the human body, changes and loss of function is normal consequence of the ageing process. This is also true of the endocrine system, specifically the levels of testosterone production from the Leydig cells of the testicle. Accompanying the decrease in testosterone is a decrease in erections which also has a component in decrease in the blood supply to the penis making erection not as frequent and not as rigid compared with a young man’s erectile function. Although these changes are in itself not life threatening, they can impact a man’s relationship with his partner, and also ED may be a harbinger of other undiagnosed conditions such as coronary artery disease (CAD), hypercholesterolaemia or diabetes mellitus.6
Other medical therapies under evaluation include ROCK inhibitors and soluble guanyl cyclase activators. Melanocortin receptor agonists are a new set of medications being developed in the field of erectile dysfunction. Their action is on the nervous system rather than the vascular system. PT-141 is a nasal preparation that appears to be effective alone or in combination with PDE5 inhibitors. The main side effects include flushing and nausea. These drugs are currently not approved for commercial use.
If PDE-5 inhibitors are not suitable or don’t work, other therapies include injections into the base of the penis, which cause flow of blood into the penis and a fairly immediate erection that lasts around an hour. The drugs injected are alprostadil (Caverject and Erectile dysfunctionex) and Invicorp (VIP and phentolamine). Alprostadil may also be inserted as a gel into the opening of the penis. This is not suitable if your partner is pregnant.
If PDE5 drugs don't work or cannot be used because of potential side effects, your doctor can recommend other therapies. The drug alprostadil (Caverject, Edex, Muse) allows blood to flow more freely in the penis, leading to an erection. The drug can be injected with a tiny needle into your penis. Or, a small pellet (suppository) can be inserted into the opening of the penis. Suppositories and injections are effective in the majority of men.
A vacuum erection device is a plastic tube that slips over the penis, making a seal with the skin of the body. A pump at the other end of the tube makes a low-pressure vacuum around the erectile tissue, which results in an erection. An elastic ring is then slipped onto the base of the penis. This holds the blood in the penis (and keeps it hard) for up to 30 minutes. With proper training, 75 out of 100 men can get a working erection using a vacuum erection device.