No spark on 1997 Nissan 200SX

The car will not start when cranking. I checked the fuel pump and when it receives power it runs, changed the distributor, checked relays and fuses and they are OK. Why wont the fuel pump activate when cranking and is there no spark?

Asked by for the 1997 Nissan 200SX
have u checked for signal from the crank sensor?