My guess is that its a bad coil. That as it heats up, it builds resistance and won't generate a spark until it cools down.
When it won't start, try checking for spark. DO you know how?
When it won't start, try checking for spark. DO you know how?