You'll probably have to go through all potential culprits and eliminate them one by one. Could be ignition related, fuel, battery, electronics...Start with the easy ones, like spark plugs, check for error codes with an OBD2 reader, battery voltage. You can usually narrow down the problem like...