A lot goes into achieving an erection. When you're turned on, nerves fire in your brain. Blood then flows into your penis. If all goes well, you’re ready for sex.
Sometimes, all does not go well. Occasional problems aren’t anything that need treatment. If issues happen more often, you may have erectile dysfunction or ED.