If you are writing to someone who has a doctorate or medical degree, use the abbreviated form: "Dr." However, for other titles, such as professor, judge, rabbi, etc., write out the full title and capitalize it. For example, your salutation in a letter to a judge would be, "Dear Judge Barnard." Or, if your correspondence was with a rabbi, you might write, "Dear Rabbi Williams."
How do you know for sure whether or not to use a closing? One good test is to ask yourself whether this email is more akin to an instant message/text or a business letter. If you're giving your teammate a quick update on an ongoing project, a formal closing might not be necessary; if you're throwing your hat in the ring for a promotion, it definitely is required. When all else fails, and you're still not sure, err on the side of caution and include it. You'll never go wrong by being too polite and respectful.