nearly always a direction miss configuration
homing to wrong end etc...
where are your endstops?
what type of machine
on a I3 type machine
on x min is on left, max is on right
on y min is at back, max is at front.
on z min is down, max is at top
then set your homing directions as appropriate to match your hardware. including min/max ports
now check movement of each axis
x + moves right, x - moves left
Y + moves forward Y - moves back
Z + moves up, Z - moves down.