7 foods that help relieve neck and shoulder pain VnExpress Broccoli, walnuts, and eggs contain vitamins D, magnesium, and anti-inflammatory compounds that can help alleviate neck and shoulder pain.