The movie you're thinking of is Raise Your Voice, a 2004 coming-of-age drama starring Hilary Duff. In the film, Duff's character Terri and her brother sneak out to attend a party. On their way home, their car is struck by a truck, leading to a pivotal turning point in the story.
The accident serves as a catalyst for Terri's journey toward pursuing her passion for music despite family tragedy.