Did I have a miscarriage?

I was a week late and now I have such a heavy flow. I had sharp pains before my period and the first day it was mucusy (not sure if thats a word) and light pink color then after that it was real heavy did I have a miscarriage?