Her hard work 'gained' her their respect. [=she has gained their respect through hard work; they respect her now because of her hard work]
His recent behavior has 'gained' [='earned'] him a reputation for stubbornness.
He 'gained' 40 pounds over five years, and then lost it all in two.