Noun + ではなかった
Noun + じゃなかった
な-Adjective + ではなかった
な-Adjective + じゃなかった
The phrase ではなかった is the informal past negative form of だ, meaning "was not" in English. It is used to deny or negate statements about nouns or な-adjectives in the past. It is less formal than ではありませんでした and is suitable for casual speech or writing.
For more casual speech, じゃなかった can be used.