Hello, which email service are you using to receive the code, Outlook, Gmail, or another provider?
Open your mailbox settings and check if inbox storage is full or near limit, since full mailboxes stop new messages from arriving. Then sign in to your email on the web, not an app, and turn off any focused inbox or priority filtering so all messages show. Next, check if your email account has any forwarding enabled and disable it, since codes may be redirected elsewhere. Finally, sign out of all sessions, sign back in, and request a new code once, then wait a few minutes before trying again.