For many years, historians believed Stonehenge was a temple ancient leaders tried to communicate with the gods.