You should reset your device as a last resort and only if you can't restart it.
To reset, press and hold both the Sleep/Wake and Home buttons for at least 10 seconds, until you see the Apple logo.
What to do if your device doesn't respond at all?
Visit: http://support.apple.com/kb/TS3281