Sex at 36.6 weeks

My last appointment at 36 weeks I was 2cm dilated and 80% effaced. Last night my husband and I tried to have sex for the first time in 2 weeks. I figured since I am so big that I should be on top that way I can control. Well I went and put his penis in me and it hurt really bad and then he said it felt like he was being pushed out. So we tried a different position from the back and he said he still felt the same, he felt as if he was being pushed out and felt like there was something blocking him from going in any further. (He was barley inside me) What could this have been?