I have a 2001 ford ranger with 3.0 and i was off roading when i the truck just shutoff.i stopped it and turned the key no crank at all?

I have a 2001 ford ranger with 3.0 and i was off roading when i the truck just shutoff. I stopped it and turned the key no crank at all?

Check the battery & see if there's a wire loose…

Sounds like a loose wire. Bouncy bouncy off road antics.

I have power to the whole truck but when i turn the key to crank nothing happens i when under the truck to make sure the starter works and i can get the starter to turn over the engine with the key on the run position but the is no spark i also checked the fuel cut off switch and it was good

Could be anything. I might suspect that if your alternator failed (and you didn't notice the warning light or gauge), you might have been running on battery power until there wasn't enough left in the battery to run the engine. Which would also mean there wouldn't be enough to crank the engine either. What is your battery voltage under load (headlights and AC on or when trying to crank the engine)? Should be =>9.0 volts. Your battery might still read 12.6 volts without a load.

Did you recently go off a jump? I heard of a guy who broke the teeth off his starter so he couldn't start his truck after taking it off a jump.