As the name implies, the shutoff solenoid shuts off fuel flow when the key is turned off. This eliminates dieseling.
Apply 12v and ground to the solenoid. It should click. A 9v battery will also work. If you don't hear a click when power is applied, you need a new solenoid.
If the shutoff solenoid stops working, the starter may also quit.