There could be many reasons but these are the first things to check:
1) Is the connecting cable connected securely?
2) Is the motor connected to the same port as your programming block is expecting?
3) Do you have the right sequence of programming blocks in place, especially the ‘set movement motors to’ block?