moving charges/current creates a magnetic field around the conductor.so why dosent an electron?if it does why arent all objects magnetic?
It does, and they are to some degree. What happens is that when the electrons get together in an atom, they pair up in such a way as to minimize the magnetic energy - that's (partially) why the atom's orbitals fill up the way they do. If you have an atom with an odd atomic number, you get unpaired electrons in the outermost shell. But these atoms tend either pair up in molecules (H2, N2, etc.) so that these electrons pair up, or form crystals and shed the outermost electrons to what's called the conduction band - the electrons stay in the material but don't stay in orbit around the atoms, making them conductive. All this pairing up makes the magnetic moments cancel out (like placing two magnets together, north-to-south ploes) leaving a non-magnetic material. The electrons themselves also spin on their axis, making them magnetic even when they're not in orbit - again, they pair up in such a way to minimize the magnetic energy. The actual physics behind it can get pretty complicated, but that's it in a nutshell.
If the electron is orbiting a nucleus, it DOES create a magnetic field around itself. In addition, the electron has an intrinsic magnetic moment due to something we call spin (for lack of any better word to describe a point particle with angular momentum). These magnetic moments interact with each other and the angular momentum of the nucleus to create the fine and hyperfine structures of atomic spectra. So why isn't everything magnetic? The short answer is that everything IS magnetic. It's just that most of the magnetic moments tend to cancel each other out. Within an atom, you usually have a spin up electron for every spin down one. For orbiting electrons (not s0 states with no angular momentum), the directions of orbit cancel out. So most atoms and molecules have little or no magnetic moment. In materials where the atoms DO have a magnetic moment, they atoms are usually all pointed in different directions, so the magnetic fields pretty much cancel out. So only certain materials under certain conditions will have microscopic magnetic moments that line up in such a way that you can observe a macroscopic magnetic field.
According to quantum theory, electrons also spin as they orbit the nucleus. The spin direction is denoted by either a + or -. The spin direction changes spontaneously at random intervals according to probablility functions, which physicists have gone to great lengths to attempt to calculate, but of course, then they attempt to verify their calculations, their instruments affect the electrons so that they can never be sure what its spin was before they tried to measure it. In nature, the electons spinning in the + state cancel out the effect of the electrons in the - state, so there no net sustained magnetic field is produced. When electric currents are applied, the external force (potential energy) orients the spin of electrons in the same direction, so a magnetic field is induced. Source: An educated guess