Check the Lights
If your golf cart is equipped with lights, make sure that those lights were not inadvertently left on. Check the light switch to make sure the lights are off. If the lights were left on the battery has probably gone dead, and hooking up a battery charger to the golf cart should get it running again.
Check the Gear Selector
Some models of E-Z-Go golf carts are equipped with a safety mechanism that prevents starting if the gear shift is not fully in the "Park" position. Carefully check the gear selector to make sure it is in park. You may want to shift the gear selector from neutral to park to make sure the gear selector is truly in the "park" position. After moving the gear shift, try to start the golf cart again.
Check the Battery
If your E-Z-Go golf cart still will not start, there may be a problem with the battery connectors. Since all golf cart batteries contain corrosive acid, you will need to wear heavy work gloves before working with the battery. With your gloves on, carefully twist the battery connections back and forth, then attempt to start the golf cart. If the cart starts, or at least comes closer to starting, the problem is most likely corroded battery terminals. You will need to carefully remove the battery terminals and clean them. It is also a good idea to remove the battery from the battery compartment and wipe it down. If the battery cable connectors look damaged or worn they should be replaced as soon as possible.
Check the Ignition Wire
A bad ignition wire could also cause your E-Z-Go golf cart not to start. Begin with a visual inspection of the wire, looking for signs of corrosion or damage. If the wire appears to be loose, reseat it and try to start the golf cart again. The ignition wire should plug into the solenoid, but it is not unusual for these wires to become dislodged, especially if you have been driving over rough or uneven terrain. If you notice corrosion on the wire it can be wiped off, but be sure to wear your heavy work gloves to protect your hands.