Your iPhone needs to be restored via iTunes. There's no way around it. After restoring it, you will still be prompted to enter your iCloud credentials for the account associated with the device so be prepared to enter it. If you cannot recall it, you will be unable to use the device.