Question: how to transfer files and apps from iphone to iphone?
Answer: Connect your previous iPhone to a Wi-Fi network.
Go to "Settings" > [your name] > "iCloud" > "iCloud Backup".
Turn on "iCloud Backup", click "Back Up Now", and wait for the process to finish.