05 Gem slows down and stops

Have 05 Gem. While using it, it will start slowing down and stop and not start back up. Wait a little while and then it will work for a little while and again stop working. New batteries charged up. What could be the problem. Thinking something is getting hot and not working until it cools down.

Classic Pedal/Sensor issue. There are no codes displayed for this failure.
Sometimes these can be repaired,
Otherwise you need to get it replaced.