If the iron nail is replaced with a wooden stick the bulb will not glow because:
Wood is a poor conductor of electricity
Therefore, it does not allow the electricity to pass through it.