Tou don't always need a good script. Sirk and Hitchcock transformed mediocre scripts into great films all the time.
You need a good script, that sets the maximum level of a movie. A great director can elevate a so-so script to a pretty good movie, but never into a great movie. No level of directing or acting can ever take a movie more than one grade point above the script.