What you eat can have a big impact on your pain levels. Diets high in processed foods and sugar can cause weight gain and trigger inflammation, making pain worse. Instead, focus on eating more fruits, vegetables and whole foods.