Welcome to the forum.
What year is the cart? Is it a fleet/series, PDS or DCS cart?
Usually when a cart stops suddenly it's a bad connection or cable. Double check all your connections
How old are your batteries? You need to take individual voltage readings on the batteries after a full charge and again when you feel the cart starting to slow down. Post the results and we'll go from there.