It depends on the game/program. For example, if you want to install Garry's Mod mods, just subscribe to them on the Steam Workshop. For mods that were made for older GTA games (Grand Theft Auto III, Vice City and San Andreas), you need to use tools such as Alci's IMG Editor, IMG Tool and TXD Workshop, and follow the instructions.
How do I install mods?