My undersdtanding is that we are Body, Soul and Spirit.
Our spirit returns to God from whence it came at death. Raw material.
Our spirit died because of eating the fruit of the tree of the knowledge of good and evil.
That fruit is death. Fruit=outcome, the outcome was death.
The knowledge that we partook of is the "cause and effect" do good, get good mentality. This is the beginning of the Law mindset. The end of the law is death also.
We recieve a new Spirit when we believe. It is alive.
Our soul needs restoring because it has all the wrong ideas. We have created our own soul, in the sense that we have filled it with memories, thoughts, emotions, etc... all based upon cause and effect mentality.
We have to change our soul (ideas, our view of reality) to fit the new life we have been given. This is the work of salvation of the soul. But it cannot happen while we are under the law mentality or we would just be filling it with more cause and effect ideas. When we believe we become aware of Grace. That is that which flows down from God. A gift. And part of that gift is the restoration or Re-storing everything that makes up our soul.
The Father does that. We just watch and agree with the choices He makes.
It has always been the soul that we are worried about at death. It is US as far as our normal waking consciousness is concerned. Where does it go? Where do we go? It is the fear of losing ourselves, the fear of death that has held us in bondage.
Oblivion or eternal pain? Those are the choices for someone who is under the law and knows of the requirement of perfection.
But along with an awareness of Grace comes an awareness of imputed righteousness. That is also one of the gifts. (Not taught enough in churches)
The body is planted and rots and like a seed we get another one of a different type. Paul writes about this. The plant is not the same as the seed planted.
Good question tough to answer. That is my current understanding.