Remove your Microsoft account, then add it back. If the above method doesn’t work, then its best to reset the account password ... it will ask for code from your 2FA setup.
TIP: This post will help if Microsoft is not sending a verification code SMS text. I hope the post was easy to follow, and you were able to Back up and recover account credentials in the Microsoft ...