Why will my iPhone not sync to iTunes?

My iPhone has lots of photos and music that I would like to keep on my computer, but not on my phone. I opened iTunes, synced my iPhone, and then iTunes froze. I tried to close it, and I saw a pop up that said that the program wasn't responding, so I shut it down. I tried it many times, one time I got my phone hooked up and I was able to change the photos and music I wanted on my iPhone, but then it froze when I clicked sync. Any advice would be greatly appreciated.

You may try iPod/iPad/iPhone transfer software, it's a nice iTunes alternative that can help you upload music and video to iPod/iPad/iPhone, I always use it to sync my iPod when my iTunes can't recognize my iPhone, it's easy to use and works pretty well
http://my-media-tools.posterous.com/ipadiphoneipod-transfer-tools