It is called "classical conditioning".
This is a procedure in which a neutral stimulus is repeatedly paired with a stimulus that elicits a reflex or other response until the neutral stimulus alone comes to elicit a similar response. Such as a cat connecting the sound of an electric can opener to the providing of food.