Help!

I've been on the pill for about 2 years and in the past 6ish months, my medication has.. Worn off..? I've been getting my period twice a month, while still on my pill? Has this happened to anyone else?? What can and should I do.. 🙁