Remove valve and cap main pipe. Repair wire connections as needed and install valve box on wire connections and main pipe tee.