Hi,
Try checking if the service is started and listening on port 5432.
You can use netstat command to check it.
netstat -nalp | grep :5432
Also , check the latest logs of the postgres when you start the engine, what it is saying. We can get the logs usually at the location "/var/log/postgresql"