The USB power ic could be bad as well. Its not uncommon to see that go bad on the iPhone 4 or 4s. But as mentioned above, it is more likely the dock connector.
The 3g is an old phone and if it has been recently updated with newer software its likely in overload mode. I would try and sell it and find something a little newer.