What causes the phenomenon of superfluidity in certain materials?

How does the behavior of materials change when transitioning from a liquid to a solid state?
How do ferromagnetic materials transition from a non-magnetic to a magnetic state?