ignition module

Gmc

how am I able to tell if the distributor or the ignition control module is going bad because I don’t have a spark.