The two kinds of energy associated with flames are light and heat.
To burn something in contact with air it must be heated to its ignition temperature. Iron has a strong molecular force of attraction. So, when heated it doesn't burn. But iron fillings when sprinkled in flames attain the in=gnition temperature quickly.
The same reason is valid for the twigs and the logs. Kindling or smaller pieces have a lot of surface area and therefore have more contact with oxygen, making them easier to burn.