Call the emergency services first, then go and help. That way if you get hurt helping or the people you pull out are injured beyond your help, the rescue services are already on their way.
Beyond that - shut down the engine if it is still running and turn off the fuel and electrics.