Usually one or a combo of the SMC reset, PRAM reset, replacing RAM fixes this. This time it did not. However replacing the hard drive this time worked for me.
I know this is iFixit and not an advertising agency, but here is the best solution I have come up with. I had the same problem, and ended up sending it here. http://www.iresq.com/ipod-repair/ipod-touch-4/ipod-touch-gen-4-dock-connector-repair.html Fixed it!