If the creature with nullify becomes the target of an incantation or enchantment controlled by an opponent, you must reveal nullify. If you pay the reveal cost, nullify takes effect. If you don't pay the reveal cost, the spell does nothing and is discarded. Note that Block functions similarly. It is revealed if you are attacked, it only works if you are willing and able to pay the reveal cost.