There are too many possibilities to diagnose that problem with so little information.
A few examples, off the top of my head:
1. Loss of compression.
2. Retarded spark.
3. Fuel blockage.
4. Bad computer chip.
5. Loose linkage.
6. Vacuum leakage.
etc.