Why does my ENGINE DIES WITH NO SPARK when hot? on 2000 Nissan Xterra

Why does my ENGINE DIES WITH NO SPARK when hot?

Asked by for the 2000 Nissan Xterra
poss distributor is going bad very common