MAF, plugs, leads, blocked fuel filter, fuel gone off,air filter. The list goes on.
Give it a top to bottom service of all oils and filters, new plugs and leads and clean out all the inlet tract.
If it's still playing up, post back with the exact symptoms and you will get plenty of advice.