If it starts with a jump and you can drive it, it’s most likely the battery or the connectors. Check connectors for corrosion and load test the battery. All the battery does is start the car, the alternator runs everything else and charges the battery. So if it keeps on running it’s most likely a bad battery. Auto parts stores will likely test it for free.