sex hurting ?

I had sex last night with my boyfriend and again tonight but tonight it really hurt and it felt like he wasn't in properly! Why?