Why does my 2003 sequoia start and then shut down a second or two after starting on 2003 Toyota Sequoia

The truck starts and then shuts down. But if I start it again it stays started. It also shut down one time while driving, but started again right after shutting down. I checked the vacuum hoses and there were no leaks or broken hoses.Can you please help?

Asked by for the 2003 Toyota Sequoia
have you had the fuel filter changed rececntly if so you could have a bad ign module or a fuel pump problem check your fuel pressure