Are there any error or warning messages when you try to move the axes? If the printer hasn't been homed then only G1 H1 and G1 H2 moves are allowed. So send G91 to select relative movement, then test the motors individually using G1 H2 X10, G1 H2 Y10 and so on.
The most common cause of motors not moving is configuration errors, or config.g not being read. Send the following commands without parameters and check that the values returned are as expected:
M584
M906
M913
Also please post your config.g file.