Install a new fill valve and connect the supply line.
Insert the fill valve base into the tank opening after attaching the valve shank to the fill valve. To seal the valve, press down on the valve shank and tighten the locknut as much as feasible. To stop the flow of water, reconnect the supply line.