Overheating - fan motor doesn't turn

the car immediately overheats and the fan motor doesn’t turn. thr A/C hasn’t worked for years, so I don’t think it is involved with the current problem.