Experiencing brain fog and body aches during a stomach bug? Your body diverts energy to fight infection, causing inflammation that affects your brain and muscles. Dehydration further exacerbates muscle pain. The immune system’s response, releasing proteins to combat the bug, also leads to widespread inflammation, mimicking flu-like symptoms. Recovering requires replenishing fluids, rest, and giving your brain a break.