An MRI scan can detect abscess, as well as meningitis, and infections involving the ears and eyes. Brain tumors.