They sink? Boats have huge rolls of the cable that they unspool as they trace the line that was planned for several years.
To fix the cables i guess divers either go down to the cable... or if its too deep they probably pull the cable up by respooling or other methods (probably a sea crane of sorts)