Prostate cancer treatments often involve radical prostatectomy or radiation therapy. These treatments can damage nerves, blood vessels, and tissues involved in erection. While nerve-sparing techniques can help, they are not always possible or completely effective.