Typically, firefighters respond to ongoing incidents, while ambulances and police cars respond to incidents that have already occurred, and the police usually arrive at the scene of a crime when there is nothing else they can do.
Therefore, the order of priority is as follows: firefighters, ambulances, and police.