Phones, especially smartphones, freeze from time to time. No big deal. It happens. It's usually due to the phone running out of memory or an unstable application (or several). If it is happening all the time, there's probably something wrong with the physical hardware in your phone, and you should exchange it. If it happened to you once, there's nothing wrong with your phone, and you should get over it.