If you can't build a mine, you have run out of metal. The building menu shows the resources required for each building. If the building is shown in red, you have a lack of resources, if it is blue you have not researched it yet.