2003 Ford Ranger Won't start on 2003 Ford Ranger

It runs great but twice in 2 months when shut off it cranks normally but doesn't fire. Then after sitting a while it fires right up like nothing was wrong. Scanner gives no fault codes
2.3 liter 4 cylinder

Asked by for the 2003 Ford Ranger
It would have to be checked at the time of the issue. It could be one of several things.