How to upload music, photos, videos, etc to iTunes?

I have an iPhone 4 and I'm replacing it because the sound isn't working. When I get my new phone, I want to be able to put all the apps, songs, photos, videos, etc that I had on my old phone. How can I upload everything on to iTunes or my Macbook Air?

Connect iPhone to Mac, and sync your iPhone 4 to iTunes, that's easy.