To be able to train troops, you need to build the building TRAINING GROUNDS in your base. Once your training ground is done, you can train different unit types like miners, Armored, etc.