Can anyone explain to me how magnetism actually works -

In part of a book I read - it claimed that there were loads of electrons all spining the same way and that caused the effect of magnetism. Surely that can't be true as if I had lots of basket balls all spinning the same way nothing would be attracted to them.

Can anyone give me a more indept explaination of how magnetism works.


Thanks

Rob