I would first check the capacitor to make sure it is not bad. Its most likely that or a loose connection inside the generator.

Post a model # and let the troubleshooting begin.