Stomach ache and spotting after period

My period Ended today but I'm still spotting and have stomach cramps. What could it mean?