Before the level starts, you can select "farms" and "buildings". I assume you only select farms, which is why you can't cook. When selecting farms, click the arrow to the left of the farm set to open the building menu.