There are many neurological (nerve problems) causes of ED. Diabetes, chronic alcoholism, multiple sclerosis, heavy metal poisoning, spinal cord and nerve injuries, and nerve damage from pelvic operations can cause erectile dysfunction.