Why Are Men Prohibited From Wearing Gold And Silk?

In Islam, there are general restrictions, and there are specific restrictions for men or women. For example, men are not allowed to wear gold jewelry or clothes made of pure silk. What is the reason for this ban? And what metal is still allowed for men?