The Edinburgh Vaults are the rooms inside South Bridge's arches, built in the 1780s for workshops and taverns and later, by most accounts, a slum for the city's poorest people. You can only go in on a tour, and three companies run them: Mercat Tours (Blair Street, from age 5, £27 an adult), Auld Reekie Tours (Niddry Street, £24) and City of the Dead (£19, no under-12s). My short answer: for history, or with children, I'd book Mercat's Historic Vaults. For a fright, book City of the Dead.
Go in knowing the difference between the building and the stories. The bridge, the trades and the damp are solid history, and finds dug out of the rubble (toys, bottles, pipes, pottery) show that people lived there later; the traditional account says they were the city's poorest. The ghosts, the witches' temple and Burke and Hare hiding bodies down there are not. If it's a ghost walk you want more than the vaults, compare the options in Edinburgh's ghost tours; for the rest of the Old Town, start with things to do in Edinburgh.