First time

Me and my boyfriend tried to have sex recently and would of been my first time but it just wouldn’t go in?? I wasn’t dry or anything we did plenty of foreplay. Maybe I was just tense and nervous with out realizing it? Or is something wrong