Really, all you need to know here is, on the main iPhone screen in iTunes, hold ctrl+alt then click restore.
This gives you the chance to select the psw that you want to restore from.
Key things to remember to do before you restore:
All these are under the context menu you receive from right clicking your phone name in the devices tree in iTunes.
Transfer your purchases
Sync your phone
Backup your phone