A faulty crankshaft position sensor will prevent spark. Do you have a live data scan tool? If you do, plug it in and check to see if there is an RPM when cranking it.
Here are the directions for replacement. The attached pic correlates with the directions.
1998 Toyota Truck RAV4 4-Door 4WD L4-2.0L (3S-FE)
Vehicle Powertrain Management Sensors and Switches - Powertrain Management Sensors and Switches - Computers and Control Systems Crankshaft Position Sensor Service and Repair Procedures
1. REMOVE NO.1 TIMING BELT COVER
2. REMOVE CRANKSHAFT POSITION SENSOR
(a)Disconnect the sensor connector.
(b)Disconnect the sensor connector from the generator drive belt adjusting bar.
(c)Remove the bolt and sensor.
1. INSTALL CRANKSHAFT POSITION SENSOR
(a)Install the sensor with the bolt.
Torque: 9.5 N.M (97 kgf. Cm, 84 in. Lbf)
(b)Install the sensor connector to the generator drive belt adjusting bar.
(c)Connect the sensor connector.
2. INSTALL NO.1 TIMING BELT COVER
Let me know if that helps.
Monday, June 29th, 2020 AT 9:44 PM