Prolactin stimulates the mammary glands to produce milk, whereas oxytocin stimulates the contraction of myoepithelial cells to cause milk ejection. Estrogen helps prepare the breasts for lactation during pregnancy but does not directly stimulate milk production or ejection.