That's the fuel shut off solenoid , it may be bad . To test it you should hear a faint click when turning the key to on , or you can remove it but leave it hooked up to the wire and when you turn the key on the plunger should drop down