Try restricting her to one room in the house and equip it with all her needs, such as food, water, a bed, hiding places, and a litter box. With less space to explore and get lost, she should gradually become more confident about moving around to find the litter box. In the meantime, thoroughly deodorize all areas where she has soiled, as the smell will draw her back to toilet again.