So you have to figure out why it's not homing.
Does the X axis make it to the homing switch? If not, what's stopping it.
Does the Y axis make it to the homing switch? If not, what's stopping it.
If you can post a video of the homing sequence, there may be something obvious in it.
Look for loose screws that are impeding travel.