Enable the VNC server on the command line
Use raspi-config to enable the VNC server on the command line.
Open raspi-config with the following line:
sudo raspi-config
Navigate to Interface Options. Press Enter to select.
Select VNC. Press Enter to select.
Under Would you like the VNC Server to be enabled?, highlight <Yes> and press Enter.
Press Enter to return to the menu. Press Esc to exit raspi-config.
https://www.raspberrypi.com/documentation/services/connect.html