Try cleaning dock connector with isopropyl and toothbrush first. Then if that fails replace dock connector
open