First Timers

The past weekend, my boyfriend and i decided to have sex for the first time. We really didn’t plan to we were just so lost in the moment, so we ended up having sex. We tried one position but he wanted me to “ride” him and so we tried and when i tried to put it in, it’ll slip out and it seemed like he was erected enough? i really don’t know. anyways, we ended up stopping, satisfied but not all the way, and you know laughing it off to make it less awkward(which is key btw!). The main question is, why wasn’t he fully erect when we were having sex? Did i do something wrong?