Your cryptocurrencies stay on the blockchain, and the Ledger Nano X is just a device that helps you keep your private key and seed phrase safe. You can always restore your Bitcoin and cryptocurrencies using the seed phrase you wrote down when setting up your wallet
by the ledger download.