Take a visual (look) at the VGA connector from the monitor for bent pins, then refasten it to the computer. If still bad, try the monitor on another machine. Just FYI, repair costs usually exceed replacement costs.

Tip: See if the place you get the monitor from will dispose of your old monitor for you.