If your into watching porn you can developed porn induced erectile dysfunction.
Does your situation involve masturbation, use of pornography, intimacy with a partner, or all of the above? If you haven't had a checkup within the past year, make an appointment with your doctor and mention your erection problems at that time. Otherwise, schedule a visit with the doctor for "male problems".