Two steel pins, sticking to the end of the of a bar magnet do not hang vertically because.

Of the spherical shape of their heads

They are made of a magnetic substance

Similar poles repel

Their head are not properly rounded