There is a fuel cut off solenoid on the bottom of the carby.
Check it is getting voltage when the ignition is turned on.
If the wiring is OK remove the solenoid and check it is working .
They sit at the bottom of the float bowl so any debris collects in them.