Loose DVI cable by the sounds of it, power off from all plugs then take out GPU and all wires going to monitor then make sure they are firm in the jacks when reattaching.
If that does not solve it, change out the DVI cable to see if its faulty or swap a GPU?