Since an erection requires an accurate sequence of events, erectile dysfunction can be caused by any problems with these events. These events are: impulses in the brain, spinal cord, and area around the penis, responses in muscles, fibrous tissues, veins, and arteries in and near the penis.