I believe the brain is nothing Moor then a collection to your spirit, and that all the memory and cognitive thinking is done by your spirit.
If you damage the physical connection, the brain, then your spirit cannot access or control your body properly. Your true self is your spirit, which does not get injured.