starts but dies on 2001 Volkswagen Beetle

car will start and run for a few seconds and then die
will restart everytime, cleaned mas air flow car ran great but has sence started dieing again

2 answers
Check for diagnostic trouble codes in the engine module, post them here and we can give more info.
On mass air flow sensors, the best defense is to replace them. Try it.