Reinforcement and punishment
Behavior followed by a good outcome is repeated (the law of effect), so reinforcement, positive or negative, strengthens a behavior and punishment weakens it, and shaping builds new behavior step by step.
From AP Psychology.