You can generate a series of backup codes or recovery codes from the platforms to gain access to your account if you lose your iPhone. Each code can only be used once, and it's possible to generate a new set. If you also lose access to these backup and recovery codes, your last resort would be to contact the platforms running your account. You'll need to prove account ownership to regain access to your account.