The NSW government says banning mobile phones in all public schools has improved student learning, behaviour and concentration.