I have read at certain place electricity and magnetism are the same thing, bit in reality we see both have different properties.
They're not quite the same thing, but are very closely related (as described by Maxwell's equations).
The support of both fields are particles with electric charge and magnetic dipole moment, such like electron and proton. Also there is the neutron with magnetic dipole moment, but without electric charge. By the help of an external magnetic field one could align neutrons and this magnetic field will exist without electric field.
Both, the electron's electric field and magnetic dipole moment are existing permanently. To reinforce the electric field we have to separate electrons. To reinforce the magnetic field we have to align the electron's magnetic dipole moments. This we can do in two ways.
First we use a permanent or an electromagnet and align the electrons magnetic dipole moment. Second we move electrons and accelerate them non parallel to the movement direction like in a coil. This induces a magnetic field. How does this works?
The cause why we could use generators, electric drives and electromagnets is based on the connection between the magnetic dipole moment and the intrinsic spin. Both phenomena have a direction and the relation between this two directions is for all electrons equal. If this would be not made so in nature, we would not get macroscopic magnetic fields.
Magnetism and electricity are not the same thing in the sense that the magnetic field (for example the magnetic field of a coil) does not attract an electric charge nor a electric charged body will attract a magnet (if neglect polarisation effects).