Question: what are the properties of materials that make them magnetic?
Answer: The north pole of one magnet is always attracted to the south pole of other magnet and vice-versa.
The magnet possess its own magnetic field lines due to various factors like flowing of current, orbital spin of electron, magnetic moment etc.