Cramps after sex?

After my husband and I had sex tonight I almost immediately started cramping. To point it hurt to walk or sit down. I’ve never had this happen before. Any ideas why? At this point to get the cramps to stop I’m laying here with a heating pad.