Surgery: If neither drugs nor the vacuum pump works, your doctor may suggest surgery. With surgery, the doctor can place a device in your penis that will cause enough hardness for intercourse. In a few cases, infections may develop after the operation, and the doctor may have to remove the device. Another operation that may help you is rebuilding the blood vessels in the penis to increase blood flow into the penis or decrease blood flow out of the penis. These procedures can help you to get and maintain an 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. 
The trouble is, most people don't know that sexual dysfunction can be a warning sign of something more serious. Dr Graham Jackson, a cardiologist and the chairman of the Sexual Advice Association, would like to change that. "People aren't aware of the underlying causes of their problems because they feel well otherwise," he says. "They'll say, 'It's my age' or 'I'm nervous because I'm in a new relationship.' But every man with erectile dysfunction should have their heart and blood pressure checked."
It is estimated that up to 20 million American men frequently suffer from impotence and that it strikes up to half of all men between the ages of 40 and 70. Doctors used to think that most cases of impotence were psychological in origin, but they now recognize that, at least in older men, physical causes may play a primary role in 60% or more of all cases. In men over the age of 60, the leading cause is atherosclerosis, or narrowing of the arteries, which can restrict the flow of blood to the penis. Injury or disease of the connective tissue, such as Peyronie's disease, may prevent the corpora cavernosa from completely expanding. Damage to the nerves of the penis, from certain types of surgery or neurological conditions, such as Parkinson's disease or multiple sclerosis, may also cause impotence. Men with diabetes are especially at risk for impotence because of their high risk of both atherosclerosis and a nerve disease called diabetic neuropathy.
Infection is a concern after placement of a prosthesis and is a reported complication in 8%-20% of men undergoing placement of a penile prosthesis. If a prosthesis becomes infected (redness, pain, and swelling of the penis and sometimes purulent drainage are signs of infection), the prosthesis must be removed. Depending on the timing and severity of the infection and your surgeon's preference, the area can be irrigated extensively with antibiotic solutions and a new prosthesis placed at the same time or removal of the infected prosthesis and an attempt to place a new prosthesis made at a later time when the infection is totally cleared.
In men of all ages, erectile failure may diminish willingness to initiate sexual relationships because of fear of inadequate sexual performance or rejection. Because males, especially older males, are particularly sensitive to the social support of intimate relationships, withdrawal from these relationships because of such fears may have a negative effect on their overall health.
Lifestyle choices that impair blood circulation can contribute to ED. Smoking, excessive drinking, and drug abuse may damage the blood vessels and reduce blood flow to the penis. Smoking makes men with atherosclerosis particularly vulnerable to ED. Being overweight and getting too little exercise also contribute to ED. Studies indicate that men who exercise regularly have a lower risk of ED.