Viagra enables many men with erectile dysfunction to respond to sexual stimulation. When a man is sexually excited, Viagra helps the penis fill with enough blood to cause an erection. After sex is over, the erection goes away.