I have two primary and two secondary valves.
You have one primary water valve with two coils, one for the ice maker and one for the dispenser. The primary valve is before the water filter. Both outlets are connected together with a "Y" water line so it becomes one outlet.
The replacement primary water valve does away with the "Y" and has one input (main water supply) and one outlet for both dispenser and ice maker.
Water flows out of the primary water valve into the water filter. It then flows out of the water filter into the secondary water valve (after the water filter). The secondary water valve has two outlets, one for water and one for the ice maker.
When the dispenser is calling for water (lever pressed) the solenoid for water on the primary water valve and the solenoid for water on the secondary water valve are energized and water flows out of the secondary water valve from the outlet going to the dispenser.
When the ice maker is calling for water it flows out of the outlet for the ice maker.
Since you replaced both valves I assume you have the new style primary water valve that does away with the "Y" water line and comes with a coupler and a length of waterline to connect to the new valve. Do you have the water lines and wires connected correctly??