Had something similar once. Turned out a piece of rubber, broken off the the inside of the fuel line, was intermittently blocking the needle valve in the carb. Took me a while to find it because of the intermittent nature of the problem.
It's also worth re checking all the electrical...