I am setting up the printer but when I try to home the X or Y-axis this keeps coming up
Error: short to ground reported by driver(s) 0 1
Also, what is motor phase B?
I think you may have the motor phases crossed on you motor plugs.
Check your phases like this: https://duet3d.dozuki.com/Wiki/Choosing_and_connecting_stepper_motors#Section_Identifying_the_stepper_motor_phases
That may explain the G0/G1 error.
If none of that helps, share your config.g and homing files along with the output of M122.
Okay, I give it a go
The motor wires were connected incorrectly and I just disable the fan function in the RepRap firmware because I did not order the corresponding wires yet. Anyways, the homing of the x and y-axis works well now.