What happens when you restore your IPhone or IPod?

I want to take off my jailbreak on my iPod touch and someone told me to restore my ipod with iTunes. I backed up my ipod touch with Icloud to get my things back. After I restore what do I have to do to get my music, settings, and pictures back.

It will erase evryhting on it. When the restore is done, it will ask if you want to restore it to a previous back up and it will be as it was before the restore. Just make sure you do back up before hand!

It's true restoring WILL take off jailbreak.It'll delete everything on Your iPod. When it's done, it'll ask if you want to restore it to your previous back up you had before. If yes, looks like you didn't even restore it. If no, hello new iPod!

It will erase the jailbreak and apps.