When you run out of food, you won't be able to do actions like sprinting, digging, or attacking properly. And your health is depleted if the hunger bar reaches 0.