There are three parts. Body, soul and spirit. All fleshly things that we see with our eyes is body. Instead of our outer body, heart, liver, kidney, hormones, glands etc. also included in flesh.
Soul is the part where is our life resides. Or soul is the life.
Spirit is of two, human spirit and spirit from above. Every human has a human spirit. But every human has not a holy spirit. Holy spirit is a gift from God. It has to be received from God by the belief of jesus christ and by our daily life.
During our near death times, Soul departs from body in a time. And spirit goes where it came from, to the father. Body deteriorates.
The soul goes to it's lord jesus. why ? He gave his life in cross. The work he had done in cross is for escaping mankind from eternal death of soul. If we believe in jesus we can escape from hell. We cannot bear the cross fully. The work in the cross has been done by Jesus.We can only believe in Jesus and by believing we can escape from eternal torment in hell.
We can rest in Jesus that is the main thing we get by believing in jesus.If you believe in Jesus and keep our daily faith life, we escape from the suffering of our human soul. Trust in Jesus, there is way to go to heaven, after our life here in this realm.