Hello,
Are you able to access your account security page from another signed in device?
Sign in on a working device, go to your account Security page, then open Advanced security options and check that your email and phone are correct under Security info, then select Add sign in method to re add or update them and remove any outdated ones, after that choose Change password and save it, then wait about 15 minutes before trying again on the new PC, and if the account shows as locked select the option to unlock it during sign in or use the account recovery form, these steps refresh your verification methods and clear the temporary block so codes can be sent again.