How to recover apple id without having apple id and email that associated with that apple id

You can’t typically brute force a missing email through https://forgot.apple.com website for several reasons. If I understand your question correctly, to rephrase the situation, you have the pin code to get to your voicemail but you forgot the telephone number. It may not make sense to start dialing every number possible and keep trying your pin code on each unless you have some idea what “number” you chose.

Unless you used that email and saved receipts, wrote things down, used that ID for other services, you’re out of luck. There is no reverse lookup possible to show all the emails that used a specific password.

I’m not sure why you would even want back an ID you didn’t use, but maybe there’s more backstory or a different problem you’re solving but didn’t include in the body of your question.