Ezgo gas dies after warming up!

1989 Ezgo gas dies after a minute or two of driving and won’t start again until it cools down! Still has spark when it dies but the starter/generator doesn’t turn every time you push the pedal! Help please!

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0