Pill help!!

Ok so I'm finishing my fifth pack of birth control and I noticed two weeks before my sugar pills I was getting this brown discharge. Now it's been going on for two weeks and I'm finally on my sugar pills. I've been still having the same back pain but I have been having headaches the past two weeks. What does it mean??