Having a phone (or, most likely, smartphone) not responding, probably making noise that won’t stop until the non removable battery runs out of power ?
Do not panic, there is a simple solution, which is called power cycling, hard reset, hard reboot, force reboot, depending on the source.
Basically, it is equivalent to your computer’s reset button : by pressing a combination of keys for some time, a battery disconnection will be simulated, forcing your hardware to reset, emptying the phone’s memory, but NOT loosing any stored applications and saved data. Your phone will simply restart.