Pain after sex

M

When I first started having sex I rarely had any pain but now every time I do I always get cramps and back pain. I had a IUD put in about a week ago but even then I still would have pain. It goes away after 2 hours with the help of heating pads and some pain killers but I still don’t know why it hurts