Bleeding when on the pill

I've been on the pill for about 5 months now but for the last two weeks I've been bleeding even though I'm not on the sugar pills, it started off with just a little blood but now it's a lot heavier and it's really annoying it's like I'm constantly on my period, has this happened to anyone and will it go away?