The two ways of magnetising an iron piece are:
1. Magnetic induction method: Take a long iron nail and test it for magnetic properties by bringing near the magnetic substances. You will see nail does not attract the magnetic substances. Now bring near a pole of a bar magnet to the head of the nail. Now bring the iron paper clips near the pointed end of the nail, you will observe that the iron paper clips now get attracted towards the nail. This is because iron nail has become magnet. Now take the bar magnet away form the iron nail, paper clips fall off. This magnetism is temporary.
No pin clings to the nail some pins cling to the nail
On removal of the magnet, pins fall down
2. Single touch method: Take a demagnetised piece of iron. Place it on a table surface. Take a magnet and select its one pole. Now mb it with the selected pole on the iron in one direction for several times. After sometime, the iron piece turns into a magnet.