Sounds like the phone has an Activation Lock. With Activation Lock, your Apple ID and password are required before anyone can erase and reactivate your device.
You can reset your Apple ID password when you go to your Apple ID account page and click Forgot Apple ID or password. Follow the instructions that follow. If you still can't change your password, contact Apple Support.