The analogy shouldn't be taken too literally.
As human beings we are our bodies, but we aren't just our bodies. There is something about us that is more than just material (though we certainly are material). Scripture talks about the animating breath, the soul or human spirit, and while it is the animating breath or nephesh/pneuma it is also more than just what could be called an "animal soul" i.e. the function of being alive. Scripture doesn't use the term, but philosophers and Christian theologians used the term "rational soul" to speak of the kind of soul human beings are/have, we are "thinking animals", rational creatures which are aware to the point that we can have a relationship with God and bear a moral responsibility before God and toward one another and the rest of creation.
Something about ourselves, with our sense of self, our moral responsibility, our relationality toward God and others, that survives bodily death; so that in Christ we do not truly die, but continue to live and have life in Christ and with Him in His presence.
At the resurrection the body is raised, healed, restored utterly and glorified/transfigured, sown decaying and mortal but raised incorruptible and immortal; sown in dishonor and raised in honor. The body, now in lowliness because of sin and death, is raised up in the glory of the Risen Christ to be as He is. And there is a restoration of the full human person. That which survives bodily death in Christ and our body transformed and glorified in Christ's image are restored together.
Familiar language that we use to talk about this is that the soul/spirit goes to God in heaven at bodily death, and then is restored to the body in the resurrection.
There won't be a copy of me in heaven, it will be me. There won't be a copy of my body in the resurrection, it will be my body. These weak and frail bones I have right now will be the bones that walk step by step under the loving care of God in the Age to Come, this skin I have now is the skin that will be with God and behold His glory in the Age to Come. Skin and bone and sinew not as it is now--poisoned by sin and death, and bearing the deathly weight of the old Adam in all my bodily members--but in Christ and as Christ is.
I, myself, body-and-soul, am alive in and with Christ now by faith, God will keep me in His presence even during the body's slumber, and I, body-and-soul shall dwell with God forever in the renewal of all things, world without end.
-CryptoLutheran