There are three parts to the law:
1. The legislature must draft the law
2. The executives must enforce the law.
3. The judicial must punish for breaking the law.
If (2) never happens, then it never gets to (3). And courts can "invalidate" a law: jury nullification.