What happened sounds a lot like PMS.
Menstrual cramping and orgasms cause the same type of contractions through your uterus walls, one experienced as cramps, the other as the very pleasurable deep contractions of an orgasm. When you get close to your period, these two can get intermingled, and the orgasm might even cause menstrual cramps. It is even possible that the orgasm make you start to spot or bleed a bit earlier.
As long as you took your pills as prescribed, you are safe from pregnancy. The failure rate is so small when you followed the instructions and heeded the warnings, that it is not even worth thinking about.
Take care!