* Nell: She played the title character, a young woman raised in isolation in the Appalachian mountains who communicates in a unique language. This role earned her an Academy Award nomination for Best Actress.
* Maverick: She played Annabelle Bransford, a gambler and love interest to Mel Gibson's character.
It's likely you're thinking of Nell, as it was a major critical and commercial success and showcased Foster's acting talent in a very different role than her previous work.