You're thinking of getting the iPhone into DFU or recovery modes, which is sometimes necessary if your phone is having software problems, or is jailbroken. But if your phone is working fine and isn't jailbroken, then all you have to do is "erase all settings" or restore from iTunes and setup as new.