If the aircraft is getting an ATC/FIS/
alerting service the pilot declares an emergency and someone on the ground determines the appropriate response from the available emergency services. What the response is varies depending on many different variables.