A. Check your phone's signal strength and ensure you are in an area with good reception. If necessary, switch to Wi-Fi and try using an app like Google Voice to receive codes.
B. Verify that your phone number is correctly entered in your account settings and that you have not blocked messages from unknown senders.