This happens on any Android phone every once in while. I suspect it's related to some runaway app. A battery pull always fixes it for me, though I do leave the battery out for a minute or two. If it turned out to be a persistent problem that would not go away, I'd do a factory reset. If you happen to be rooted, you could reboot into recovery and clear cache and dalvik.