If your device does not turn off because the screen is frozen, you may need to perform a hard reset. To perform a hard reset:
Press and hold the power button and the Home button for about 7 seconds until the Apple logo appears. The device will then restart and can then be used again and again normal and unlock. If this does not work, you may have to take your device to an Apple Store to have it checked by an expert.