Painful sex

Me and my boyfriend were about to have sex and when he barely put it in it hurt and he tried to go deeper and I had to push him off it hurt so bad. He couldn't even finger me without it hurting. What could be wrong?!??