When Grbl boots, one of the options is to have it start in a locked state. You have to either send a $X, unlock command, or home the machine using a $H command. Also, are you using NO or NC switches? You have to set Grbl so it knows which one. If using NC, you have to invert the limit pins.