Hard in the bedroom ?

Has ur so ever had a hard time staying hard during sex ? If so .. What was the cause ?