You need wood and matches to build a fire. The wood can be found in chests around the map or collected from trees by using an axe. The matches can be found in chests as well.