This one is a little tricky, first determine if it's coincidence or weather related. Take a water hose; and hose down the truck real good with the hood closed. Try to recreated the problem, if the problem does not reoccur it maybe coincidence.
Now if it does ,you need to check for spark and fuel. Then follow a flow chart for which ever one it's not getting.