Im guessing that your account is enabled for MFA and thats why it doesnt work.
I would look at the Azure Sign In Logs and see what it says for your account
https://learn.microsoft.com/en-us/azure/active-directory/reports-monitoring/concept-sign-ins