You choose from one of the two or three connections.

And the DVI port would have to be one that has VGA signals. Many DVI ports are strictly digital.

The lack of details means I can't tell you where it went wrong but try the DVI to HDMI next since that conversion usually works every time.
Bob