A neighbour considered calling police after she heard a girl scream “in pain” two days before Sara Sharif died, a court has heard.