I recently upgraded from an iPhone 3G to the new iPhone 4 and the other day I plugged it in and it did the exact same thing you described but had worked previously. I re-booted the phone and tried again and it worked fine. Try that and see. Not sure why that happened but it fixed the issue.