Help!!!

After having sex with the hubby as soon as he pulled out I had cramping and a lot of bleeding. The bleeding has stopped and the cramps have subsided some since taking some medicine but does anyone know what could have caused that?