Sorry Fabio, after disabling the ufw, I can able to connect with mongoDB using MongoDB Compass. Now every thing is working fine.
Issue: What ever I do, the mongoDB service state is failed.
The complete solution is which works for me is:
sudo ufw status (if it is active need to disable)
systemctl stop mongod
sudo chown -R mongodb:mongodb /var/lib/mongodb/
chown mongodb:mongodb mongodb-27017.sock
systemctl start mongod
systemctl status mongod