Is that green connected to a black wire? It should be connected to the bare wires. The black wire is the power to the receptacles and should be connected one of the other black wires.
On the original switch, two of the blacks must have been connected to the same screw. One of those black is power in and the other is power to the dead receptacles.
Joed, It looks like green is spliced to a ground. If my eyes are right, where is the third black.? I see 3 white neutrals which means there should be 3 black hots of which the third should be pigtailed with the one going to the switch as you say. No?