Reset your iPhone to factory default before you sell it or give it to someone else. But before you do, I'll show you a quick way to back it up. You can use iCloud with wifi and it doesn't take very long.
Once you've backed it up, resetting your iPhone is pretty straight forward.