I’m quite lucky as I don’t get really bad cramps all that often. The things that work best for me, when I do get cramps, are a hot waterbottle or masturbating.
I’ve also heard people say that when they begin to embrace and learn about their menstrual cycle the pain and discomfort can stop, or they see it in a different light.
I know people who swear by bananas, others who take painkillers, different things work for different people. Try some remedies and see what works for you.