Test to see whether syntax highlighting is enabled in Vim. If you type :syntax on and the problem goes away then that’s your issue, and you can correct it by adding:
syntax on
to your $MYVIMRC file (usually at ~/.vimrc or ~/.vim/vimrc; find out exactly with :echo $MYVIMRC in Vim).