With the fuel tank of, pour some fresh fuel in, quarter full or thereabouts, shake it all around then pour it out the filler. this should get most crap out of the tank, and clean the little filter that sits at the start of the fuel line.
does sound like fuel-starvation. when the fuel runs out in the carby, the motor will start backfiring for a few seconds then slowly die.
Sam.