A can is cylindrical. A tin is usually rectangular, lower than it is wide (rather flat), and almost exclusively used for containing preserved fish, e.g. “a tin of sardines” and “a tin of kippered herring”. Also, we very specifically use the phrase cookie tin to refer to a squat cylindrical metal box of particular dimensions for selling cookies.