What are the specs?
What program/s do you usually run that it causes hang?
There are several reasons and here are some:
1. Insufficient RAM: Caused my the limitation itself compared to the demand, or caused by a program that consumes more RAM than intended. (background apps/programs)
2. Overheating.
3. Virus or malware.
4. Kernel issues.
and among others...