The train had just pulled into the Herald Square station when passengers notified the conductor that a woman had given birth.