A bit more information would be helpful. If it is vapor lock, pull off the air cleaner when it dies and look down the carb. Is it squirting gas? If so, not vapor lock. 
Next, buy one of these cheap spark testers. When it dies, pull a wire and check the spark. 
It is usually pretty easy to tell the difference. If it is ignition, the car will just stop running. It will not hit at all when you try to restart. If it is a fuel issue, the car will usually try to hit, but won't start. 
I am guessing sunman withe either the hall effect sensor or an ignition module has the right answer.
https://www.amazon.com/Stens-750-018...%2C143&sr=8-15