Hello,
Check whether your phone is blocking text messages from unknown numbers.
Then, go to your Microsoft account's Security Settings page and check whether you can sign in.
During sign-in, check whether you can receive the SMS verification code requested online.
- Connect your phone or PC to your mobile data network. Then, open a web browser and sign in to the Security Settings page using the link below using a private browsing tab:
- https://account.live.com/proofs/Manage
If you can sign in successfully using a verification code, add another sign-in or verification method to your account. You can then use that method during the PIN reset process to set up your PIN again.