It is a means of communication to convey sadness or to get your attention. Also when a dog hears a high pitched noise he may cry because it is uncomfortable.
Depends on what you mean by cry. Leaking from the eyes, is usually a build up of bacteria and you should wipe the eyes daily with a warm cloth. vocal crying can be for the same reasons as people, the dog is unhappy.