Period lasting 3 weeks after not having it for 2 months

So after two months of not having my period I finally got it but it’s lasting 3 weeks and is still going. The color of it is red and a brown color but has this happened to anyone and can explain? Is there a way to stop it or should I go to the doctor?