[noun] + ではない / じゃない [na-adj] + ではない / じゃない
Past: [noun] + ではなかった / じゃなかった [na-adj] + ではなかった / じゃなかった
Na-adjectives also use じゃない / ではない for negation, since they behave like nouns grammatically.
The polite equivalents are じゃありません and ではありません. ではありません is more formal than じゃありません.
To express "was not," use the past negative forms:
In casual speech, じゃない with a rising intonation can also function as a tag question meaning "isn't it?" – similar to でしょう. Context and intonation distinguish this from the negative meaning.
Be careful not to confuse this confirming usage with the standard negative meaning.