Try to recover the password from a phone or computer you have previously used to log into that Gmail account. Google recognizes trusted devices, which can bypass some verification steps.
Do not request the SMS code multiple times consecutively. This can trigger a security delay, making it harder for the code to arrive. Wait at least 15–30 minutes before trying again. Alternative Solutions When SMS Recovery Fails gmail password recovery via sms link fix
If the text simply will not arrive, Google provides alternative paths to verify your identity. Try to recover the password from a phone
How can I reset my password via SMS - Google Account Community gmail password recovery via sms link fix