Here’s a very commonly used but absolutely spot-on analogy between computers and spirituality.
A Computer / laptop is like the physical body.
A USB drive is like the mind.
Electricity is like the soul.
Between lives, the mind moves from one body to another, taking with its past experiences and emotions.
No different from a USB being plugged in from one laptop to another.
And electricity is always present to power any laptop or computer with any usb drive.
Just like the eternal soul aka atman aka Brahman is omnipresent, constantly powering, animating and enlivening everything.