Pull over to the edge of the roadway, clear of intersections, and stop. Emergency vehicle drivers are taught to pass on the left whenever possible when responding in an emergency mode. When safe, slow down, pull over to the right, and stop. Leave your foot on the brake to let emergency vehicle drivers know you have stopped.
However, there are circumstances where just pulling over to the right may not be possible (if your car is already stopped, and you don't have anywhere to pull over). Simply stay put until the emergency vehicle goes around you. If you are blocking the route of the emergency vehicle, and you are able to pull ahead and over into a clear area, use your turn signal to indicate your intentions, and proceed at a safe speed.
Never slam on the brakes and stop in the middle of the road when you see apparatus approaching. Make no sudden moves. If an emergency vehicle is approaching from the opposite direction, you should pull over and stop. You have no idea if they are proceeding down the road, or are planning on turning into a driveway or intersection right in front of you.
You are not required to slow down or pull over for emergency vehicles that are responding in the opposite direction on a divided highway. Do not tailgate, "draft" or follow a responding apparatus closely. Not only is this illegal, you run the risk of collision as vehicles pull back out into traffic after the emergency vehicle goes by.