Hurting during sex

Hi! I have an Iud and have for a while and my boyfriend and I were trying to have sex yesterday morning and it hurt so badly that he couldn't even get in. I am pmsing right now and was wondering if this has happened to anyone else