The sentence that uses a relative pronoun correctly is: "She ran a race that was five miles long."
The relative pronoun "that" is used correctly to introduce the relative clause "that was five miles long." The other sentences contain incorrect usage of relative pronouns.