It seems like a hardware issue. Either your monitor’s data cable becomes loose or defective. Might be a possible problem with your monitor itself. You can start troubleshooting but unplugging and plugging the monitor’s data cable from both sides. If it doesn’t work then replace the data cable. If both don’t work then it means the problem is in the monitor itself. If so, then get it repaired.