Failing at sex?!

So last night I went to my FWB hotel room (he was having a party but only the guys were left) and we were planing to fuck.. we were in the bathroom and his dick wouldn’t go in,, I wasn’t super wet but still. We kept trying different positions but it was just wasn’t working (also I kept queefing, how do I stop that??) so I just went and sucked him off but we have no idea why it wouldn’t go in and why his dick kept going limp when we tried to put it in.. anyone have any ideas??? We wanna try again but don’t want it to happen again... please help🙏🏻🙏🏻