If I understood properly you want to reverse the jailbrake and recover your old iPhone status.
If you have an old backup in iTunes with all the data you want ot have, then just do a regular restore and then recover from the back up you want to go back.
The photos and contacts can be synced/copied to your computer even the phone is jailbroken, so you should not loose any of it if you indeed copy them to your computer.