Well, one was declared legally, due to a terrorist attack that didn't just damage America, it effected the world trade center, aka all the countries that were involved at the time were effected too. Russia is illegally invading Ukraine.
To dumb it down, one was given approval by the un to declare a war on terror, and the rules of conduct for warfare are being followed. Russia is not following the rules of conduct, and declared war without approval.