Digital minister Margot James says phone and broadband firms must “play by the rules”.