N channel MOSFET not turning on under inductive load
That is not a logic level mosfet. Vgs(th) may be 2.5V, but that does not mean it will be fully turned on at 3.3V. Note that Rds(on) is specified ONLY at Vgs of 10V. You should find a mosfet with Rds(on) specified at 2.7V.

When using a MOSFET as a switch, always check Rds(on) and verify that it is specified at a voltage you can live with.