The answer is;
- Increase the number of coils around the nail
- Increase the current on the wire coils.
The nail becomes magnetic through a phenomenon called ferromagnetism. The electric field around the coils, as the current passes, cause an alignment of electrons on the nail and cause it to have magnetic properties. Iron, nickel, and cobalt are highly ferromagnetic materials.