If you hear the Relay in engine bay fuse box "CLICK" then everything up to that point is OK
Ignition switch-----------fuse24--------neutral switch----------relay
All this is Good
That leaves the Starter motor
Simple test
1998 Engine fuse box diagram here:
https://www.autogenius.info/wp-content/uploads/2017/01/ford-ranger-fuse-box-power-distribution-1998.jpg
Relay 6 is the starter relay, the one that "CLICKS" with key in START, its the double square with the 6 inside toward the right
Pull it out
You will see these Slots in the fuse box after relay is out:
http://www.gtsparkplugs.com/images/mini-relay-diode-wiring.jpg
MAKE SURE transmission is in PARK !!!!
And Key is in your pocket
Use a jumper wire to connect Slot 30 and Slot 87(not 87A) together, starter motor should activate
If not starter is for sure, 100%, dead
If starter DOES activate, replace relay
You can pullout Relay 9 and use it in place of relay 6, to get engine starting with key
Relay 9 is for the heater fan, so it won't work until you get a new relay