Install the parts that you removed to get to the valve cartridge. Reinstall the parts in the order you removed them.
Replace the shower knob sleeve and flange. Also replace the shower knob and the screw that holds it in place. Tighten the screw with a screwdriver. Do not install caulk around the knob sleeve until you have tested for leaks.
Turn the shower knob to the “off” position if it isn't already. Turn the water supply back on at the water main.
Turn the shower knob to the “on” position. It should work properly.
Turn the shower knob back to the “off” position. Look for any leaks around the knob.
Repeatedly turn the water off and on several times until you are convinced the valve does not leak. If it does not leak, apply a bead of caulk around the shower knob flange. If the valve does leak, you need to remove the parts you just replaced including the valve cartridge. Check that the cartridge snaps into place and does not catch on anything. Remove anything that may be interfering with the path and placement of the cartridge.
Reinstall the parts including the valve cartridge, knob sleeve and flange. Also replace the knob and the screw that holds it in place.
Repeat the process until there are no more leaks.