Pains after period?

My period is almost gone theres a small bit of blood when I wipe but I keep getting a pain on my left side it goes away then comes on for a a few seconds then goes away again and it's not extremely painful just curious what it could be? I have protected sex about 3 weeks ago