There is the theory of emergent dualism, where a soul or conscious energy is produced by something in the physical structure of the brain, be it a certain set of nerves or more likely, the pineal gland. Emergent dualism, however, attests that the soul functions as a separate entity as the physical brain, as if the tissues are simply it's host. This would lead one to question afterlife, could the soul survive without being rooted in the brain?
The modern "scientific" idea is that the complexity of the brain is enough to create sentience. That just doesn't make sense. No matter how nerves there are, no matter how many separate electrical signals there are, they will still be completely meaningless from a spiritual standpoint.
My personal belief is that when one dies, the essence of their sentience escapes from their brain, diffusing into another plain of existence until it finds a new mind to reincarnate into. The memories are stored in the physical structures of the brain, so these are lost, with the exception of certain, emotionally powerful ones. These will stay vaugely intact.
There aren't really any factual arguments regarding sentience, it's very subjective by nature, and also, it's a very complicated issue.