You didn't give any details about your system. I'll assume you're using XP on an average system.
Could be many things. Overheating (too much dust build up or hardware error) other hardware error, bad memory or video chip, power supply failing.
Could also be a bad driver or system update, or spyware installed.
Do a system restore to an earlier point when it was working. Then do a virus and spyware scan.