Bleeding

I'm not a virgin and I had sex last night and something hurt and then I started bleeding. What could have caused this? Did he hit my cervix just right or what? The bleeding stopped very shorty after we noticed and stopped having sex. This has also happened before