Without knowing more, I can only guess at the problem.
1. Do you have a 12V power supply attached to the RAMPs board?
1a. Is it turned on. (I get caught by this occasionally as the Arduino/RAMPS lights up and talks to the computer with just the USB 5v.)
The motors and heated bed/extruder need the 12v.
2. How are your motors wired?
The RepRap Ramps wiki says they should be:
From left to right, wire all of the stepper motor's wires as red, blue, green, and black or red, green, yellow, blue into the pins next to the Pololus.
If this dosen't help, please explaine more what you have done/are doing when the motors aren't working.
Komb'
Glankonian Protoforms