What if i reset all settings?

I have to reset all my settings on my iPhone so what will happened? I mean, will all my music and photos delete?

When you sync your iPhone with iTunes, it should make a backup of your phone including all data. When you restore your phone, the next time it connects with iTunes it should ask you if you want to restore the phone from backup or set it up like a new phone (blank).