There are 2 possible ways to profit from earnings when you buy a stock as a value investor.
1) Dividend
When a certain company makes a profit over a period( Quaterly, Annually) then a company can choose to give a dividend (part of the total profit) to it's shareholders (all stock owners of that company).
2) Price change
It's quite common that companies don't pay all their earnings in dividends but instead they reinvest in their assets as a main goal to grow growth or sustain against competition that's what drives the price of the stock