Most pump motors have internal overloads that will shut the pump down if it overheats. It is very possible that is what happened in your case.
Another possibility, which you mentioned, is that the pump did indeed run out of water. Some pressure switches have a builtin low pressure dropout, that protects the pump from running dry.
Try to ascertain whether or not there is plenty of water in the tank, should the pump quit again.