ORACLE12 - Connect Via SqlPlus
Make sure the database is actually running, and if not, start it. If you have an init script, then it's typically something like:

sudo service oracle start


This has been asked before for Oracle 11g - the answers and comments to that question may be helpful here:
ORA-01034: ORACLE not available in oracle 11g