when my engine reaches a certain temp. why does it cut off while being driven? on 1996 Honda Civic

when engine is cold, it runs perfectly fine, but once it warms up the engine sputters and likes to cut off.

Asked by for the 1996 Honda Civic
very common for dist to fail
what's the best way for me to check it?
check for spark when engine is hot
i did that, i had spark, and i just got new spark plugs and wires put on
1 more answer
could be a bad distributor