Paul explains this very well
I Corinthians 15:35 "But some man will say, "How are the dead raised up? and with what body do they come?"
Paul is now going to tell us what happens and we bury them in the ground. Pay attention so that you will understand and there will be no confusion. So if you believe in the resurrection, than how does it happen? Where does it take place, and with what body does the dead rise?
We are talking about the physical body and it's change. In other words, what happens to the flesh after death, and the soul after it has departed from the body?
I Corinthians 15:36 "Thou fool, that which thou sowest is not quickened, except it die:"
I Corinthians 15:44 "It is sown a natural body; it is raised a spiritual body. There is a natural body, and there is a spiritual body."
There is a natural body, which is your flesh body, and there is also a spiritual or soul body. The two are different and when the natural body, or flesh body dies the spiritual body is "raised", or in the Greek text "egiro, awakened, become active from its death". You have two bodies, one natural body contains your spiritual body, and that spiritual body is awakened to a new life, when the flesh or natural body dies and releases your soul. Your spirit and your soul are together, for the spirit is your "self", "the intellect of your soul" which houses your spirit within you.
Your spirit never leaves your soul, even at the death of your flesh body. Satan does not have any power over your spiritual body, but only your flesh body. Man and Satan can tare this flesh body to peaces and cause you to do all sorts of things, but no-one can damage your soul, not man, not Satan nor the angels. God is the only one that can destroy the soul and that comes at the end of the Millennium age, following judgment. However through deception Satan can cause you to sin against God, and thus be in trouble before the Almighty God. But that is why we have repentance in the name of Jesus to become right-standing before the Father again.
It just can't be made any clearer than Paul has made it here. You have two bodies, the flesh and the spiritual bodies. When the flesh body dies, then the spiritual body is awakened and come alive within itself. It starts to live a life without the baggage of the flesh body confining it to the limits of the flesh.
Ecclesiastes 12:7 "Then [at death] shall the dust [flesh body] return to the earth as it was: and the spirit [spiritual body] shall return [instantly] to God [Father] Who gave it."