Yes, you will likely lose texts when switching phones unless you back them up, as messages are stored on the device or in the cloud, not the SIM card, and modern transfers need specific steps like using cloud sync (iCloud, Google One) or apps (SMS Backup & Restore) to move your message history to the new phone.
Use Google Drive
Google Drive syncs your data across devices that are logged into the same Google account. Your backed up texts will be restored if you reset your phone, or log in to a new one.
Go to your old phone Install sms backup and restore and backup your texts and calls to Google drive or email and then download the app on your new phone and click restore after you download the backups from your email on your new phone.
Thanks for posting your question here in the Support Communities. If you receive a new iPhone you can transfer the data between the two devices and not lose your text messages.
Switching Phones? 4 Steps to Protect Your Data
Make sure you are grabbing the following before you reset your old phone to factory settings:
You can insert your SIM card into an unlocked phone and it will function seamlessly, allowing you to continue using your existing phone number and cellular service. The first indication that the phone is unlocked is that it detects the SIM card by connecting to the network and finding reception.
iMessage, text (SMS), and MMS messages
If you haven't turned on Messages in iCloud, your messages are included in iCloud Backup. If you use Messages in iCloud, your messages automatically sync to iCloud so they aren't included in your daily backup.
When you first turn on Messages in iCloud, it may take some time for all your messages to appear on each device. You can send and receive messages during this time. If your messages are not syncing, check the requirements for Messages in iCloud and make sure your devices are up to date.
Use a cable.
Check the Recycle Bin in Messages. Check the Archived section in Google Messages. Recover messages from Google backup. Check if Google Backup is turned on under Settings > System > Backup.
Smart Switch will begin scanning the old phone for transferable content. After the scan, you can choose between Everything; Just accounts, calls, contacts, and messages; or Custom. Select the data you want to move, then tap Next or Transfer.
To transfer everything to your new phone, charge both devices, connect to Wi-Fi, and use the on-screen setup prompts to copy data wirelessly or with a USB cable from your old phone (Android to Android) by signing into your Google Account and restoring a backup or directly transferring apps, contacts, photos, and settings, with app-specific data like WhatsApp often needing separate in-app backups.
Go to Setting -> Your Name -> iCloud then Scroll down and enable toggle of “Messages”. Wait for sync process. Now on second iPhone do the same process as above and wait for sync. After some time, your messages will appear in your message app.
Yes, photos will be available and all text messages will remain on the phone unless you erase it.
If you use Messages in iCloud, recovering a message or conversation on your iPhone recovers it on all your devices where Messages in iCloud is turned on. See Keep your messages up to date with iCloud in the iCloud User Guide.
Open your device's Settings app. Backup. Under “Backup details,” review what data is backed up on your device.
iCloud backups include all the information and settings stored on your device that don't already sync to iCloud. iCloud backups don't include: Notes that you already store and sync in iCloud. Photos, if you turned on iCloud Photos.
More details... iPhone messages are backed up via iCloud, which is great because it means that you can restore old messages to a new iPhone! This works best if you have a brand-new iPhone, as the iCloud backup from your old iPhone will replace any data on your new device.
How to transfer data between Android phones1:
Recover deleted text messages on your iPhone or iPad
Your photos, videos, contacts, apps, ringtones… everything else that isn't your phone number, will still be on your phone after you remove the SIM card. Obviously, you won't be able to call or text those contacts without a phone number, and some apps may not work without a network connection.
No, taking out a SIM card does not delete everything. Your phone's data and apps are stored on its internal storage or external memory card. None of this data is stored on the SIM card.
When you set up your new device, you can move your data from your old Android device to your new Android device. Important: If you are transferring data from an old Android device to a Pixel 8 or Pixel 8 Pro, visit the Pixel Help Center.