You acquired your device second hand from someone other than Apple or an authorized Apple reseller. The information below explain what has happened. You apparently didn't know to heed the advice given below.
Â
"Before you buy/acquire an iPhone, iPad, or iPod touch from someone other than Apple or an authorized Apple reseller, make sure that the device is erased and no longer linked to the previous ownerâs account."
Â
And see: Activation Lock for iPhone, iPad, and iPodtouch  https://support.apple.com/en-us/HT201365. See this heading Check for Activation Lock before you buy/acquire a device from someone else.
Â
 What all this means is that there is no way we can help you. We are not authorized to remove the
activation lock from any device. And, under your circumstances, Apple support will not help you since you cannot provide proof of ownership that they will consider to be sufficient. You would need and have your purchase
receipt for the device from an authorized Apple seller with the device's serial number on it.Â
Â
Usually, I would suggest that you try to recovery the needed password from the party you acquired the iPhone from. But, I see that this party couldn't remember the password. I emphasize that recovering the password is the only way the phone can be made functional for your use or sale. And getting it from the person you acquired it from is the only way to so.