Hey Justagoodcutegirl,
This article provides different ways to receive the two-factor authentication code: Get a verification code and sign in with two-factor authentication - Apple Support
If you have another Apple device that you’re signed into with the same Apple ID, you can get a code from its settings. You can also request the code be sent to a trusted phone number if you added one to your Apple ID.
If neither one applies to your situation, you’ll need to start the Account Recovery process: How to use account recovery when you can’t reset your Apple ID password - Apple Support
Account recovery is an automated process designed to get you back into your Apple ID account when you don’t have enough information to reset your password. For security reasons, it might take several days or longer before you can use your account again. We know this delay is inconvenient, but it's important so that we can keep your account and information safe.
Feel free to get back to us with any questions or problems you may have.
All the best.