NXT brick output ports not working properly
Try putting a Wait block after the motor block. Set it to wait for 5 seconds.

I think your program just terminates after one block. Please post your program next time you have a mindstorms question.