what exactly is magnet ? what makes it to crate magnetic field ? is to do anything with electrons ? what exactly happening at the molecular level ?
While the individual atoms in any substance can have magnetic moments, that doesn't mean the substance itself is magnetic. For the substance to be magnetic, you need a sufficient number of atoms all working together. This requires two things.
The first thing that needs to happen is that there must be some disagreement between the atoms. In many substances, all the electrons line themselves up in orderly pairs, each of them canceling out the magnetic properties of the other. If you imagine 1,000 locomotives, half of them trying to go north and the other half going south, none of them are going to move. So, for a substance to be magnetic, its electrons can't all be paired up.
However, this in itself isn't enough for the substance to be magnetic. Just because a material's electrons don't line up in pairs doesn't necessarily mean that the substance is magnetic. Manganese, for example, an important mineral found in nuts and cereals and essential for healthy bones, is not magnetic, even though its electrons don't line up in pairs. If you had 1001 train engines, 500 facing south and 501 facing north, that extra engine is not going to make much of a difference.
The second thing you need is for a sufficient number of electrons to align themselves parallel to each other – like a lot of locomotives facing in the same direction – so their ability to interact with an external magnetic field is substantial enough to move the entire object.