Legendary pokemon are just that - pokemon that have some kind of legend based around them. If you'll take a look...
Kanto
The legendary birds of Kanto are said to keep balance with the world's weather patterns, and are ultimately under the authority of Lugia (See Movie 2). Lugia, itself, is also part of the Johto legend, having fled from the top of the Brass Tower (now Burned Tower).
Mew is said to be the ancestor of all pokemon, while Mewtwo is said to be a clone of Mew and has legendary power to accompany it as such (See Movie 1).
Johto
Raikou, Entei, and Suicune, the legendary beasts of Johto, are said to have been resurrected from a deadly fire in Ecruteak City, by none other than Ho-Oh itself. Additionally, Ho-Oh is said to fly the skies of the world, searching for a pure-hearted trainer. Only then will it descend and appear before humans. (See Johto Games).
Celebi is able to cross time, as seen in Movie 4.
Hoenn
The Regi trio, Regirock, Regice, and Registeel, were said to have great power in the past, frightening the people of Hoenn (specifically Pacifidlog Town), and were sealed away as such. They are later revealed to be subordinate to Regigigas, who created them after itself.
The Lati twins are said to be guardians of the soul, as seen by their item, the Soul Dew. They are few in number, and are highly intelligent (See Movie 5). They protect the city of Alto Mare, as well.
Groudon, Kyogre, and Rayquaza. The super-ancient trio of the Hoenn region, it is said that they had significant impact in the shaping of the world. Rayquaza leads the trio, having descended from the ozone layer to stop the fight between Groudon and Kyogre, who raised continents and expanded the seas, respectively.
Jirachi is the wishing pokemon, and is said to awaken only for 1 week every thousand years. During this time period it is said to be able to grant any wish. It is also capable from absorbing cosmic energy and forwarding it to the Earth.
Deoxys is a legendary pokemon that came from space, supposedly as a mutated virus. Its story is present in Movie 7.
Sinnoh
Dialga, Palkia, and Giratina form the dragon trio, created by Arceus. Dialga and Palkia are counterparts, expanding time and space, while Giratina represents the concept of antimatter and was banned for its violence. It keeps balance through the distortion world.
Uxie, Mesprit, and Azelf represent the spirit, and keep balance with the world by countering either one of Dialga or Palkia, should they attempt to change things. They are said to have strong spirits.
Heatran is a legendary simply because of the legend surrounding it - that if the magma stone of Stark Mountain were removed, it would awaken and cause havoc like it did in the past.
Regigigas is said to have pulled together the continents, and it also created the Regi Trio of Hoenn, as established by the anime.
Cresselia and Darkrai represent opposite emotions. While Darkrai incites fear and has the power to induce nightmares and darkness, Cresselia is able to dispel fear and insecurity. Fittingly so, they come out during the new moon or the full moon. Platinum hints toward the fact that Darkrai was placed on New Moon Island because of the mere fact that Cresselia was nearby and could undo any damage it caused.
Manaphy is a legendary pokemon that travels the seas, and is capable of finding Semaya, the legendary palace in the sea, built by the people of the water. It can bond with pokemon amazingly well, thanks to its Heart Swap ability (platinum). It produces Phione from itself, which is thus a legend by default (this is supported by pokemon.com / Game Freak / whoever runs that site).
Shaymin, the gratitude pokemon. Legend has it that it is responsible for the creation of the beautifully fertile Floraroma Town. According to the 11th movie, legend has it that wherever a group of shaymin land, a beautiful field of flowers will emerge, known as the Flower Bearing.
Finally, Arceus stands as the creator of all, more specifically the universe. From itself, it created Dialga, Palkia, and Giratina, as well as Azelf, Uxie, and Mesprit.