Apple has two related features, Activation Lock ( Activation Lock for iPhone, iPad, and iPod touch - Apple Support ) and Find My ( iCloud - Find My - Apple ), which are designed to prevent anyone else from using an iPhone, iPad, or iPod touch if it's ever lost or stolen. Deactivation of either requires knowing the Apple ID and password that set the feature, or by placing a special request to Apple to reset the device. This Apple ID information essentially defines the current ownership of the device.
Click on this link to learn how to remove Activation Lock either on the device itself or on the web --> How to remove Activation Lock - Apple Support
or this one for disabling Find My if activation lock has not yet engaged --> Turn off Find My on your iPhone or other devices - Apple Support
If you do not know the required information, are not the signed-in owner, or do not have Apple accepted proof of purchase, the owner of the account is the only one who can remove the lock (the section: "If you no longer have your iPhone or iPad" in: What to do before you sell, give away, or trade in your iPhone or iPad - Apple Support ). The device is otherwise useless to you.
Here are additional resources:
● Help with a lost Apple ID or password:
• For help with a forgotten Apple ID (this is likely an active email address or one used in the past), click here --> If you forgot your Apple ID email address or phone number - Apple Support
• For help with a forgotten Apple ID password, click here --> If you forgot your Apple ID password - Apple Support
● Reset device if you can prove to Apple's satisfaction you are the owner:
Apple can completely reset a device if a person can provide sufficient evidence of valid ownership. This is done online at: Activation Lock support request - https://al-support.apple.com/#/additional-support Apple says, "Proof of ownership documentation is required," but does not provide many details in the article as to what is acceptable proof. Prior to this official service Apple typically required the original receipt* issued by Apple or an Apple Authorized Reseller and documented provenance (so typically it would be the first owner who does this, or a descendant with legal proof of ownership transfer).
*Apple recommends you keep your receipt after you buy an Apple device. --> Keep your receipt after you buy an Apple device - Apple Support
To avoid this from happening again:
Apple Business Essentials --> Intro to Apple Business Essentials - Apple Support
Apple Business Essentials includes all the features of Apple Business Manager and more. Apple Business Essentials is one complete subscription that seamlessly brings together device management, 24/7 support, and cloud storage so your small business can easily manage every employee’s iPhone, iPad, Mac, and Apple TV (that your organization owns)—every step of the way. Apple Business Essentials is currently available only in the United States."