A non isothermal phase-field model for the ferromagnetic phase transition