The song flopped twice before a gritty Best Picture winner turned it into one of the most famous movie songs ever.