wow the computer works like normal in vga mode. i can watch youtube videos as well

OK methinks it may be time for you to splash out on a new video card

Strangely, now the computer works in normal mode

Either the connections on the card are a bit iffy or it is a sporadic failure within the card