You need to keep track of account information because now forgetting it can mean major loss of use of equipment.
Typically an Apple ID is an email address you have used. If you are currently using a mobile device that is logged into your account, go to Settings and tap your name at the top.
Look in Keychain, and in a browser's security settings if you use it to automatically sign into Apple when using a browser.
This support article describes ways to find your Apple ID --> If you forgot your Apple Account primary email address or phone number - Apple Support
or go directly to this link --> https://iforgot.apple.com/appleid
If you find you can’t sign in, reset your password, or receive verification codes, you can request account recovery (go to this document: How to use account recovery when you can’t reset your Apple Account password - Apple Support ) to regain access to your account. Account recovery might take a few days or longer, depending on the specific account information you can provide to verify your identity. One tip to using account recovery it to look for options in small blue letters beneath the normal log-in items if you cannot complete the requested information.
If you cannot recover use of the account, Apple can completely reset a device if a person can provide sufficient evidence of valid ownership. Check the requirements and steps at: Activation Lock support request - https://al-support.apple.com/#/additional-support Apple says, "Proof of ownership documentation is required," but does not detail what currently constitutes proof other than it “must include the product serial number, IMEI or MEID.” Apple may typically require the original receipt* issued by Apple or an Apple Authorized Reseller. If Apple resets the device this will give you access to the device but won't restore access to the account used to lock it. There is nothing that can be done to expedite an Activation Lock request.
*Apple recommends you "Keep your receipt after you buy an Apple device" --> Keep your receipt after you buy an Apple device - Apple Support