why strength of magnetic field increases when iron core is placed in placed of wood
This is because Iron core (usually soft iron core) is a highly ferromagnetic material. Ferromagnetic materials allows (and attracts) the magnetic field lines to pass through it.
When such a material is used in the electromagnet, the magnetic field lines passing through it increases, thereby, the strength of the electromagnet increases.