We change our behavior when the pain of staying the same becomes greater than the pain of changing. Consequences give us the pain that motivates us to change.
The rule, or measuring rod, which the behaviorist puts in front of him always is: Can I describe this bit of behavior I see in terms of "stimulus and response"?