How to factory reset an iPhone 4S and restore only specific contents?

I want to reset my iPhone for various reasons but I want to keep my sms messages and my photos and videos. Just to clarify I want the messages to be back on the phone (not just viewable on the computer) and I want the photos and videos to be in the camera roll not just photo stream. I have read ways of how to put the messages back but how do I restore the photos and videos too?

Added (1). To stress again, I want to restore ONLY the messages and photos and videos. No other content or settings.

Down load them to icloud, u probly stole that iphone if you don't know how lol

Backup up first with itunes and use icloud to save the back up files.;)

and then use fromn setting-> general-> restore to factory setting.;)

How about you just reset network settings?