Every metal has a different technique of extracting, but most commonly they use blast furnaces to melt metal ores and oxygen or carbon reduction reactions to extract metals. But you should check out Wikipedia to see the extraction techniques for the metals you wish to know, because as I've said before, for every metal you need another technique.