Help, spotting & pain.

I haven't had a period or spotting, since March when I got BC, in May I had a miscarriage. The past three days I have been spotting with tissue and chunks, and have had excruciating cramps and vaginal pains as well as sore legs... What is going on?