It can be used in a few different ways:
* A formal prohibition: "There was a ban on smoking in the building."
* An act of banning: "The government imposed a ban on the import of certain goods."
* A state of being banned: "He was under a ban from driving for six months."