Discipline refers to teaching children to control their behavior and follow rules, whereas punishment refers only to the unpleasant consequences of failing to follow the rules.
Discipline is used for teaching and guiding while punishment is used with the intention to retaliate and control.