Pain during sex

I'm 35 weeks pregnant why does it hurt so bad to have sex? I tried but I was scared because it doesn't normally hurt at all. I can't tell why, maybe I'm dry down there? Or could it hurt if you're like 1-2 cm dilated ? And could I be dilated this early? It really hurt.