Why is this going on ??

So I’m on and off on my birth control I’m not sexually active and my periods been back to back lately my last one ended on the 18th and now it just started again today ... is this happening because I’m on and off on the pills because it hasn’t happened before ... please help