Well, in The New Testament, the soul and spirit are often treated as interchangeable. Kind of makes sense because both soul and spirit are attached to each other. Ecclesiastes 12:5-7 shows our 'spirit' goes back to God Who gave it. Many have wrongly interpreted that 'spirit' to mean like just a drop of God's Spirit going back into GOD Himself, like it is the same spirit of life given all living things, but that's not the meaning. The reason is because in Matthew 10:28 Jesus showed that our 'soul' does not die when our flesh dies, so that means our soul and spirit go back together to God at flesh death.
And with testimony from Apostle Peter in 1 Peter 3 and 1 Peter 4 about Jesus going to the "spirits in prison" and preaching The Gospel to them, that also reveals we still have conscious awareness after flesh death.
Heb 4:12
12 For the word of God is quick, and powerful, and sharper than any twoedged sword, piercing even to the dividing asunder of soul and spirit, and of the joints and marrow, and is a discerner of the thoughts and intents of the heart.
KJV
In 2 Corinthians 5, Apostle Paul showed simply that if our flesh body were suddenly dissolved, we still have another building from God, not made of flesh, eternal in the heavens. That is about our spirit body with soul. Even though the subject of near-death-experience (NDE) isn't real popular, that is actually in agreement with Scripture. Our soul/spirit can be separated from our flesh, temporarily (NDE), or at death (permanently).
In Ecclesiastes 12:5-7, Solomon revealed the existence of a "silver cord".
Eccl 12:6-7
6 Or ever the silver cord be loosed, or the golden bowl be broken, or the pitcher be broken at the fountain, or the wheel broken at the cistern.
7 Then shall the dust return to the earth as it was: and the spirit shall return unto God who gave it.
KJV
That reveals at death of our flesh, that "silver cord" is loosed, or severed, removed. It's pointing to that "silver cord" is what holds our spirit/soul in our flesh body. That also reveals it is severed only at death of our flesh. What about with a NDE event?
Apostle Paul in 2 Corinthians 12 pointed to an out of body experience, which is how those who've had an NDE describe their experience. With an NDE, one's "silver cord" is evidently still connected, as their soul/spirit returns to their flesh body, like the one Paul was describing.
1 Kings 17:21-22
21 And he stretched himself upon the child three times, and cried unto the LORD, and said, "O LORD my God, I pray Thee, let this child's soul come into him again."
22 And the LORD heard the voice of Elijah; and the soul of the child came into him again, and he revived.
KJV