If you have lost the device which had access to 2Fa codes and need to regain access to it, use your backup code, which was given to you during 2FA set up process.