Your dodge ram 1500 can only be driven 10 to 15 miles before it cuts out why?

this happened to one of my jeeps i had, it started moving fine down the street but it had a loud noise behind it, i got up toabout 20 mph and it shut off, i later learned that it was because the engine wasnt heating up fast enough to keep up with the movement of the vehicle