Why doesn't my Samsung Galaxy S communicate via USB?
I had a similar problem. It was caused by moisture getting into the terminals while using phone in the rain. One solution is to get terminals cleaned or replaced.