There's probably an 80 percent chance no damage was done to the engine in two miles, especially if it wasn't warmed up yet or if the outside temperature is rather cold. The problem is how did you know this happened? Coolant temperature sending units for the dash gauge need to sit in liquid to work, so your gauge would likely have stayed on "cold". That could mean the car was driven a lot more than two miles with no coolant.
There's two things to consider. Most commonly coolant will have sprayed onto the engine including spark plug wires where it can short out the spark to a couple of cylinders. That can render the idle speed too low and the engine will sputter to a stop. The clue is it will stay running if you hold the accelerator pedal down 1/4", and you may feel the misfires. If you do, and the misfiring doesn't clear up, the arcing likely left a carbon track behind and you'll need to replace the spark plug and the wire.
The next, less-likely possibility is a sensor overheated from the engine heat. Crankshaft position sensors and camshaft position sensors often fail by becoming heat-sensitive, resulting in stalling, then work again after they cool down for an hour. Suspect that if you have no spark when a helper cranks the engine.
Tuesday, January 14th, 2014 AT 4:15 AM