after few minutes the computer will automatically turns off.
when i turn it on again, it only turns on but there were no desplay on my monitor.
after few hours i turns it on.
There is a good chance, your computer is overheating.
We need your Windows version, your computer maker, and model to start with.