Services stopped after perform ssh config

I am really new using linux. I have a Ubuntu Mate 16.04 on my raspberry pi 3 and yesterday I tried to make ssh running automatically (by systemctl) but the main services stopped running, for example the network adapter, my domoticz app server, and even something more strange happend, the terminal from ubuntu does not open anymore. The commands I use was the following:

sudo apt-get update
sudo apt-get install openssh-server
sudo ufw allow 22
sudo /etc/init.d/ssh restart
sudo systemctl enable ssh

Did I do something wrong?

Does journalctl | grep ssh show any errors?

It shows 2 lines:

sshd[750]: Server listening on 0.0.0.0 port 22
sshd[750]: Server listening on :: port 22

That shows ssh is running. What does systemctl status ssh.service show?