1986 Ford Ranger - Won't restart

I was driving on the highway in my ford and as I was driving the car just shut off and wouldn’t start again,it’ll still crank. I’ve determined that there is no spark. so i replaced the ignition module on it yet nothing. I’m lost

4 cylinder? Timing belt?

Yea it’s a 4 cyl 2.3 L and the timing belt is old and could be changed but still is in tact