Laptop or Desktop?
Please give this forum the brand and model of computer, operating sytem, and age.
The cause could be almost anything, so we need your help in narrowing down the possibilities.
It can be failed hard drive, memory, power supply, cpu fan, video graphics card, cable that has vibrated loose, operating system. Spyware or other infestation. dust, dirt,hair, fiber blocking operations due to heat.
If the computer is more than three years old, any of a number of components could have failed.
But sometimes the fix is as simple as disconnecting and reconnecting all cables inside the case. Or cleaning out dust and dirt. The most common problems are failures of hard drive, memory, or video graphics.
Start with age, use, and operating system.