Plug your iPhone to your computer. On your iPhone make sure to turn off “Find My iPhone”. Back Up your phone and then restore the device. This will wipe the phone to factory settings and remove all the data in it. Then your device will be ready for sell.