Hello,
Welcome to Microsoft Q&A forum. It's my pleasure to help you today.
I understand that you are having issue receiving the verification code to your phone. Before we proceed, may I know how your account got locked out, it is not accepting your password, or a message appear after you've logged in? IF possible, please send me a screenshot of what happened. Please remember to remove any personal data before posting.
In the meantime, you can try to resend the code multiple time or change your phone network to see if it helps.
I'm waiting for your reply so we can work on this together.