You must check firstly hand Brake. If not , Issue could range due to Low Fuel Pressure Issue which may happen due to Blocked Fuel Filter or Fuel Pump Issue. Else, if Engine Light on - it could also be due to Engine Oil Leakage or ECU Malfunction. Other reasons can be also due to clutch plate failure which may not move the car a inch or low on gear transmission fluid or worst transmission system failure.
If you have an automatic transmission, instead of engaging “D”, try the other gears, 1,2, see if you feel a clunk as the transmission engages, you might have broken a ‘sprag’ in the gearbox, which will require a rebuild.Check that you have transmission fluid in the gearbox.