The simplest way to put it is that “tomboy” is mostly about gender expression, while “non-binary” is about gender identity.
A tomboy can still completely identify as a girl/woman while liking masculine clothes, hobbies, behavior, etc. A non-binary person doesn't identify exclusively as a man or a woman. Of course, someone can be both non-binary and have a tomboyish or masculine presentation, so the two aren't mutually exclusive.