It enhances the magnetic effect as coiling the wire causes the field to align and form a giant single field, rather than lots of them all perpendicular to the direction of the current
Having an iron core in the centre increases its strength as it is easier for magnetic field lines to pass through than air
Factors that affect the strength: size of current, length, cross sectional area, number of turns (coils), using a soft iron core