Speaking from personal experience, something as simple as a concussion can create such symptoms. For that reason, I find it very easy to believe any illness which could impact your brain physically (such as with fevers or inflammation) could have strong negative impacts on your mental capabilities.