You connect your iPod to your computer and open iTunes.
In iTunes, you will see your iPod listed in the left-hand column.
Click on your iPod and you should see an option to "Restore" your iPod to factory settings. All your music, photos, apps, etc... will have to be synced back after the restore.