You can have a plugged exhaust, plugged fuel filter, bad airflow meter, problem with the ignition system, incorrect timing belt/chain setting, and failing fuel pump....I'm sure there's more but that should get you thinking.
it can also be a piece of the engine breaking off and lodging in a fuel valve. it has happened to me. they thought it was the fuel injectors but was this piece of metal. we are now waiting to see if they will repair it. The mechanic that looked at it when we stalled said it was an manufacturer defect in the engine.