Check your testosterone levels
Testosterone does NOT cause good erections, contrary to popular belief. But testosterone that is too low can reduce sex drive and make it more difficult to sustain interest in sex.
Source: http://europepmc.org/abstract/MED/16042359
http://europepmc.org/abstract/MED/17329016