Truck only runs when steering wheel is turned to left or right?

A vehicle that only runs when the steering wheel is turned left or right is likely experiencing an electrical issue related to the ignition system. Here's a possible explanation and solution:

1. Faulty Ignition Switch: The ignition switch is responsible for providing power to the vehicle's electrical systems, including the engine. If the ignition switch is faulty or damaged, it may not be able to complete the circuit necessary to start the engine.

2. Steering Wheel Position Sensor: Some vehicles have a steering wheel position sensor that communicates the position of the steering wheel to the vehicle's electronic control unit (ECU). If this sensor is faulty or misaligned, it may provide incorrect information to the ECU, causing the engine to shut off when the steering wheel is centered.

3. Intermittent Electrical Connection: There may be an intermittent electrical connection in the wiring between the ignition switch, steering wheel position sensor, and the ECU. This can cause the engine to start and stop when the steering wheel is moved.

To resolve this issue, you should have the vehicle diagnosed by a qualified mechanic or technician who can inspect the ignition system, steering wheel position sensor, and related wiring for any faults or damage. They can then repair or replace the necessary components to restore proper functionality.