pain during sex

Okay so I had sex 2 weeks ago and when I was having sex it hurt so much my stomach was really in sm pain what could have caused it