You would need a phone number that is accessible from somewhere other than the phone that is lost.
Two-factor authentication can use phone numbers from Androids, landlines, friends' or relatives' phones, but it would have to have been set up while you had access to the Apple ID.
If you don';t have access to any trusted devices or trusted phone numbers, see the following from Get a verification code and sign in with two-factor authentication - Apple Support
If you still can't sign in
If you can’t sign in, reset your password, or receive verification codes, you can request account recovery to regain access to your account. Account recovery might take a few days or longer, depending on the specific account information you can provide to verify your identity.