Dear student,
When electric current flows in a wire, it create magnetic field around wire. This effect can be used to make an electromagnet. Magnetic field can be made stronger by
a) wrapping the coil ( wire) around piece of iron.
b) Adding more turns in coil.
c) Increasing the flowing current.
Regards,