An erection occurs when blood fills chambers in the penis, causing it to become firm. Vascular erectile dysfunction may happen if vessels that deliver blood to the penis become blocked or damaged.