3 move to safety as train smashes into stuck car