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.
Your doctor will ask you questions about your symptoms and health history. They may do tests to determine if your symptoms are caused by an underlying condition. You should expect a physical exam where your doctor will listen to your heart and lungs, check your blood pressure, and examine your testicles and penis. They may also recommend a rectal exam to check your prostate. Additionally, you may need blood or urine tests to rule out other conditions.
The first line and by far the most common treatment today is with the prescription drug sildenafil citrate, sold under the brand name Viagra. An estimated 20 million prescriptions for the pill have been filled since it was approved by the FDA in March 1998. It is also the most effective treatment with a success rate of more than 60%. The drug boosts levels of a substance called cyclic GMP, which is responsible for widening the blood vessels of the penis. In clinical studies, Viagra produced headaches in 16% of men who took it, and other side effects included flushing, indigestion, and stuffy nose.
There are relatively few contraindications to the use of vacuum devices. Some conditions can predispose to priapism or perhaps bleeding with constriction, such as sickle cell disease, polycythemia, and other blood dyscrasias. Patients taking anticoagulants can safely use vacuum constriction devices but need to accept a higher risk of bleeding (ecchymosis). Good manual dexterity is also needed to use the device; if manual dexterity is impaired, a willing sexual partner can learn to apply the device.
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
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.
Having your current medication checked – if you are taking medication already, it could be that your erection problems are a side effect. Have a doctor check whether this is the cause of your problems and if it is, you might be able to switch medications and then find that your erectile dysfunction goes away completely – or at least improves. Medications that can cause erection problems include:
Some injectable formulations need to be refrigerated — yet another reason many men steer away from the needle option. Among ED treatments, injections are also the most common cause of extended erections — rigidity lasting more than four hours, also called priapism — which afflict about 3 to 7 percent of users, Kohler says. That condition, while easily treated with an adrenaline shot, requires urgent attention at a clinic or hospital. The cost of this ED treatment is $2 to $5 per injection.
One study examined the role of testosterone supplementation in hypogonadal men with ED. These men were considered nonresponders to sildenafil, and their erections were monitored by assessing nocturnal penile tumescence (NPT). After these men were given testosterone transdermally for 6 months, the number of NPTs increased, as did the maximum rigidity with sildenafil.  This study suggests that a certain level of testosterone may be necessary for PDE5 inhibitors to function properly.
Under normal circumstances, when a man is sexually stimulated, his brain sends a message down the spinal cord and into the nerves of the penis. The nerve endings in the penis release chemical messengers, called neurotransmitters, that signal the corpora cavernosa (the two spongy rods of tissue that span the length of the penis) to relax and fill with blood. As they expand, the corpora cavernosa close off other veins that would normally drain blood from the penis. As the penis becomes engorged with blood, it enlarges and stiffens, causing an erection. Problems with blood vessels, nerves, or tissues of the penis can interfere with an erection.
Induction of erection occurs after stimulation of the cavernous and pelvic nerve plexus. Conversely, stimulation of the sympathetic trunk leads to detumescence. The reflex erectile response requires that the sacral reflex arc remain intact. Tactile and sensory signals are received by the somatic sensory pathways and integrate with parasympathetic nuclei within the sacral spinal cord (S2-4) leading to induction of erection via cholinergic signaling. These reflexogenic erections remain intact with upper motor neuron injuries. Psychogenic erections do not require that the sacral reflex arc remain intact. In a cat models, spinal cord removal below L4/L5 led to absence of a reflexogenic erection but stimulation of the medial preoptic area (MPOA) or placement near a female cat in heat led to erection (5,6). Psychogenic erections occur via induction of central pathways traveling from the brain through the sympathetic chain. Non-penile sensory pathways induced by sight, sound, touch and smell travel through the MPOA to the erection centers within the cord T11-L2, and S2-S4 to induce erections (7). When a sacral lower motor neuron injury is present in men, below T12 these types of erections are more likely to occur (8). Spinal cord lesions above T9 are not associated with psychogenic erections (9). Rigidity of erections is less with psychogenic erections because the thoracolumbar sympathetic outflow may contain a decreased concentration of neurons compared to the parasympathetic outflow from the sacral spinal cord.
Having erection trouble from time to time isn't necessarily a cause for concern. If erectile dysfunction is an ongoing issue, however, it can cause stress, affect your self-confidence and contribute to relationship problems. Problems getting or keeping an erection can also be a sign of an underlying health condition that needs treatment and a risk factor for heart disease.