If it’s just a program that’s stopped responding, you can try to force the program to close.
Press and hold the Sleep/Wake button until the red slider bar shows up on the screen. Instead of sliding the red bar, press and hold the Home button for about 6 seconds.