i phone 4s as a gift 3rd party owner
Go to Settings / General / Reset / Reset All Content and Settings.
This will wipe the device and restore it to a factory-settings state.

If you do this, nothing will be left on the device (data, settings, accounts, etc) and you'll have a fresh start with the phone.