Monitor shows "no video input" and then enters sleep mode

I just bought a new pc and connected all the cables then turned it on. Then on my monitor it said no video input and then it just enetered sleep mode. The first time I got it id said the same and I sent it back for repairs. It's still not fixed after I got it today. It's connected by vga cable. What is the problem then?
 
Back