|You need to make sure the VGA cable is plugged in. |
In the link, the VGA is bottom right, your pc might be slightly different.
Google rear of pc, images.
If you are sure its plugged in correctly, perhaps your graphics card has come loose.
Before posting try google. Backup. Use anti virus software.