An alternative way to check reported speech transformations is to run each option through three checks together: the reporting verb, the pronoun shift, and the tense shift, rather than building the sentence from scratch.
Only option A satisfies the reporting verb, pronoun, and tense checks together.
Hence, the correct answer is He said that he had won the race.