The Sims 2 supports a large modding community, and custom content is usually installed by placing the downloaded package files into the game's Downloads folder. Many creators host their work on community sites and ask for a small optional donation to download.
You will often need an archive tool such as WinRAR or 7-Zip to unpack the files first. Make sure any mod you install is compatible with your game version, and back up your save files before adding new content.