The law of effect states that

close temporal contiguity is the key characteristic in forming an association between stimulus and respons

Response generalize across similar surroundings

effect is strong if the effect is long lasting

A response will be strengthened if the organism is rewarded for that response