You can force it into recovery mode and restore it as new in iTunes. But afterwards you will not be able to activate and use it for anything without the password to the AppleID currently logged into iCloud on it.
Erasing a device does not disable activation lock. You must know the AppleID/iCloud password to use that device or release it for someone else to use it.