does tthe lights on the dash stay on when it dies ? if the dummy lights are off then it's a bad ignition switch (electrical part) if it's a main relay the car would stay running but would start up fine when cold but on a hot day or after a drive won't restart after the engine is shut off unitl it's cooled down.