That's most likely to be a faulty dock connector. Try a replacement first. If that doesn't fix it try a replacement battery then power flex.
open