Unable to start GUI session

I’ve tried

sudo systemctl set-default graphical.target

and

sudo systemctl start gdm3.service

But it doesn’t work, what could be the problem?

The default setting should have gui session. Did you install anything and cause the gui disappear?