Lots of possibilities...1 connector contact defect
2 intake system defect 3 exhaust system defect 4 sensor defect 5 ignition defect 6 fuel system defect 7 harness defect 8 engine controller defect
Good luck...I would swap from a know good truck..if not available then start cheap with ignition switch...Then call a Toyota tech in your area..look for burnt or loose wire...and try reconnecting all harness connections checking for loose or unseated pins
This is ONLY to be used to report flooding, spam, advertising and problematic (harassing, abusive or crude) posts.