Sounds like you may need to reset the account 2 factor.
https://learn.microsoft.com/en-us/azure/active-directory/user-help/multi-factor-authentication-end-user-troubleshoot#to-sign-in-to-your-work-or-school-account-using-another-verification-method
--please don't forget to upvote
and Accept as answer
if the reply is helpful--