This sounds like a weird problem is there any codes in dash if not the only thing l could think of is this is a guess maybe you have a ecm problem in the engine controller.by disconnecting the battery you are waking up the computer. and the truck starts. Good luck.
This is ONLY to be used to report flooding, spam, advertising and problematic (harassing, abusive or crude) posts.