Homing problem

Hello
I am setting up a new printer.
All the motors drive and the homing was working.
A couple of times now after I have turned the power off and back on to the board the homing doesn’t work.
When I press any of the home buttons all the motors lock up.
The motors will still move in all directions except the extruder.
If I click the centre bullseye button on Pronterface both the x and y drive to max.
When it is in this condition if I try to send commands such as M119 there is no reply.
The first time it happened I removed the SD card and cleaned it and the problem went away.
That doesn’t work now. I have tried a new SD card and loaded the latest config but it still doesn’t work.
Any ideas will be greatfully accepted.
Thank you
Tony

Imported from wikidot