There are 3 main things to check with engines, air, fuel and spark.
Being a bike (presumably CV carbs) air wont be an issue
Spark is obviously fine because it starts and revs
But if its got restricted fuel flow, then as soon as you put load on the engine it cant keep up. I had the same issue...