2004 MPV Engine Cuts Off While Driving

My 2004 MPG loses power while driving. "I changed maf & cam shaft sensor and it still does the same. It does slow when I accelerate then it will only idle then runs about five minutes then dies and will not start until it cools down, about an hour and a half to two hours." Any other suggestions? My scanner does not indicate any codes.
 
Top