Assuming its an automatic, try holding the key in the start position when moving the gear selector from P or L and back. The neutral safety switch might be misaligned, and this would identify that issue. The truck should start in P or N, but if its misaligned, it might start in R or D, etc.