Homing machine lights

My machine has been sitting for a time as i had to learn to get mobil again.

When homing the machine, it goes to where switches are set and stops. on the machine inspector the lights are not made and it says to unlock machine when i try to move it. the switches will light when i touch them manualy … s real poser to me.

I set it all up again and still no joy.