ganar, verb:
to earn; to win
One of the basic meanings of ganar is to earn.
Gana menos que yo.
He earns less than me.
Gana un buen sueldo.
She earns a good salary.
Related to that meaning is the idea of winning something, such as un premio, a prize, un concurso, a competition, or una carrera, a race.
¿Quién ganó la carrera?
Who won the race?