Period

Sally
I've been on the pill 3 months now. My period is not due for about 10 days but I just got it. How is that even possible if I'm on the pill. Also don't know if it matters but my boobs have been sore for about a week