Can't connect iPhone 4 to iTunes?

When I connect my iPhone 4 to my iTunes, it says 'iPhone could not be connected because it is timed out'. Or something like that. So I can't transfer my music from iTunes to my iPhone.

Was it on another computer

You may try these steps.
1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
3. Check the USB cable
4. Verify that Apple Mobile Device Support is installed
5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
http://www.reviewstown.com/itunes-alternative.html
7. Check for third-party software conflicts.