Try these in order. You can stop as soon as one works.
1. Use your other method
On the code screen, choose "Verify via Text Message" or "Verify via Authenticator App" (whichever you set up). If you chose text messages, ask for a new code and give it a minute to arrive.
2. Use a device you already trust
If you are already signed in on another phone or computer you checked "remember this device" on, sign in there, open the two-factor settings, and replace the method you lost. Sign out of anything you no longer have.
3. Ask Access Patrol to help
If you have lost every method, send a recovery request. Access Patrol will confirm it is really you, by calling a number already on file, before anything about your account is changed. Never send a password or a code in the request.