Encephalitis is not a very common illness. But if you become infected with the disease it causes the brain tissue to swell and become inflamed. In rare cases the infection can attack both the brain cells and central nervous system in the spinal cord.