Instinct and Senses
Newborn lambs do not "know" where to get milk in a conscious sense. Instead, they are guided by instinct, scent, and sound. They are hardwired to seek warmth and nourishment, drawn to the strong scent of their mother's milk and the sound of her bleating.
Physical Guidance
A lamb's natural instinct to nudge and explore often leads it to the mother's udder. The mother also helps by instinctively encouraging the lamb to suckle and curling her body to make the udder accessible.
A Combined Effort
Finding milk is the result of instinct, sensory cues, and the mother's behavior working together rather than conscious knowledge.