What functions of the nervous system are affected by meningitis?