Bananas help against muscle cramps, Felton says. They also keep PMS away. Bananas will keep your sugar levels even. (Sugar cravings can be a major headaches trigger). The fruit will also improve your magnesium intake, which also plays a crucial role in preventing muscle cramps and pain. People who don’t get enough are more prone to inflammation, which has been linked to heart problems, diabetes, and even some types of cancers, according to the National Institutes of Health.