If your iPhone won't turn off the usual way, you can force restart it with a button combination specific to your iPhone model.
Newer iPhone models come preset with SOS mode. Once activated, this feature contacts emergency services to assist one in need ...