The ban on mobile phones in New South Wales schools is working, according to a survey of almost 1,000 principals.