On iOS, just hold the button you would use to turn the phone off, but hold longer, it will loudly count down to 0 and call emergency services. You can also press the side button 5 times and it will call without you having to hold the button pressed. Works on iPhone and Apple Watch.
More info here: https://support.apple.com/en-us/HT208076