There are thousands of reasons of headache but during periods it can be due to hormonal fluctuations. Cramps are due to uterine contractions caused by prostaglandins in order to excrete uterine linings outside along with blood. NSAID (Pain Killers) can be helpful.
That happens to me to.
I don't know ...but don't worrie it very normal to have cramps on your period