After you got a message that your iPhone is disabled, you need to put it in DFU or Recovery Mode, and Restore it via iTunes. Your data will be erased, but the phone will be restored and can be used like a new one.
You can follow the detailed guide here: https://support.apple.com/en-us/HT204306