Changes in hormone levels, especially during pregnancy or menopause, can affect brain function and lead to symptoms similar to brain fog. Thyroid disorders can also cause similar effects.