Iud pregnancy

Daisy
Ok I my iud since April. When I went to my second Doctor appointment I had a different Doctor she checked the strings. But for some reason I started feeling uncomfortable. Sex was a little painful. Well after a month it got better I wasn't feeling as bad anymore. Well this month I started feeling really bad.today I took a pregnancy test and it was positive. I'm confused.