Not enough info. With what you've told us, it could be bad RAM, bad PSU, underpowered PSU, overheating CPU, a virus, or any number of other problems.
What are all your other components (HDD, exact RAM, GPU, etc.)? What are you doing when it freezes? What have you tried to fix it? Have you run any diagnostics? Have you added any new parts? Have you tried everything in the "Read before posting about boot problems" sticky?