Sex, please help!!!!

I was trying to have sex with my boyfriend today for the first time and I can’t figure out why he wouldn’t stay hard. We did fool around for like an hour or so.