The answer is reinforcement and punishment. The term reinforce defines to build up and is used in psychology to bring up to something stimulus which build up or upsurges the likelihood of a specific reaction and punishment denotes to adding something aversive in order to reduce a behavior. The most communal sample of this is punishing spanking a child for misbehaving.