You should be more specific: OS, Oracle version, ORA codes.
If you get ORA-12541:
- first check the tnsnames.ora file and ensure that it points to the correct server and port
- on your server, ensure that your listener service is running, using lsnrctl status
- try to start the listener service using lsnrctl start