I am glad you asked this, because there is much confusion on this subject. I will not go into all the “false teachings” that are taught; I will simply give you scriptures (with a few comments) to answer your question.

When someone dies, their body is dead, but their spirit departs from the body (James 2:26a). They are in HADES, which means “unseen.”  We can’t see them anymore but their spirit lives on forever.  Until the future resurrection of this body they will remain in this condition of being without their body. As to “where the spirit goes,” it depends on if they are saved or lost. The spirit of those who are saved goes immediately to HEAVEN. Jesus told the saved thief, “Assuredly, I say to you, today you will be with Me in Paradise” (Luke 23:43). When the thief died his spirit was “with the Lord in Paradise (which is heaven… see 2 Corinthians 12:1-4). A few minutes later the Lord Jesus said to His Father, “Father, ‘into your hands I commit My spirit.” The Lord Jesus was also in heaven with His Father, but His spirit was in the condition of HADES, but only for 3 days because His body was raised and reunited with His spirit 3 days later (see Acts 2:27, 31-32). We see another clear example in the death of Stephen, the first Christian martyr. We read in Acts 2:59-60, “And they stoned Stephen, as he was calling on God and saying, ‘Lord Jesus, receive my spirit.’ Then he knelt down and cried out with a loud voice, ‘Lord, do not charge them with this sin.’ And when he had said this, he fell asleep.” Stephen’s body died (it “fell asleep”), but he was “absent from the body and present with the Lord” (2 Corinthians 5:8). All believers who die will go immediately to be “with the Lord” as they await the resurrection of their body which will be reunited with their spirit (see 1 Corinthians 15:51-55; Philippians 3:20-21; and 1 Thessalonians 4:13-18). Because their spirits are “with the Lord,” they are already in a state of bliss (see Philippians 1:21-23 and Psalm 16:11).

The spirit of those who are NOT saved also departs from the body and are in the same condition of HADES (where they are disembodied). We are not told WHERE they are, but we are told what they are experiencing while they wait for the resurrection of their body. In Luke 16 we read of an unsaved rich man who died. We read in verses 22-24, “the rich man also died and was buried. And being in torments in Hades… he cried and said, ‘Father Abraham, have mercy on me, and send Lazarus that he may dip the tip of his finger in water and cool my tongue; for I AM TORMENTS IN THIS FLAME.” This lost sinner, though disembodied, experienced TORMENT as if he still had a body, yet his body had been buried, and his spirit was now in this “place of torment” awaiting the “resurrection of the unjust” (Acts 24:15; Revelation 20:13-14). When the resurrection of lost sinners takes place they (body, soul, and spirit) will be “cast into the lake of fire” (Revelation 20:15; 21:8) for all eternity (John 3:36). Many people confuse HADES with HELL, but as we have just seen, no one is in Hell (the “lake of fire”) yet. Those who die without trusting in Christ are in a state of torment, but that will pale in comparison to being cast into hell where there is “weeping, wailing and gnashing of teeth” in a place of “outer darkness” (see Matthew 13:40-42, 49-50; 25:30; Jude verse 13).  (DO)  (750.3)