I have an iPhone 1g running 2.0.2

Im on orange uk and it displays my number in the contacts section. But if i put my friends sim card in it doesnt display their number?

Im selling it to my mate on the basis that it displays his number with his sim card installed. Any ideas?