Two teenagers have been charged with stealing a New York City subway train and taking it for a joyride in Queens, police say.