Some cold and sinus medications can cause temporary ED and they are sometimes used when a blue pill (and similar) assisted erections last too long. Get better details from a doctor.