An erection is the end result of the synergy of numerous factors working together. Your mood, freshness of the mind, energy levels, blood circulation, vein and artery conditions, and even your relationship with your partner are responsible for an erection. An abnormality in any of these could lead to a sudden erectile dysfunction.