Here’s what I think one might commonly encounter:
Before the name:
“The Honorable” (Hon.): all judges, elected officials (except for those elected to local boards or committees, like school boards, zoning boards, etc.), and very senior appointed officials (for example, cabinet secretaries). Judges are addressed as “Your Honor” (or sometimes “Judge”) in court, but no other official is addressed as such. Other officials may sometimes be addressed by title (Mr. President, Senator, Mr. Mayor, Madme Secretary, Governor) and sometimes by name. They also may be referred to by title (i.e. Mayor Bloomberg, Chief Justice Roberts). The general rule is “once honorable, always honorable”, so any official retains his or her “honorable” designation after leaving office, with possible exceptions for those leaving office in great disgrace (i.e. it isn’t The Honorable Inmate Number 239543).
Military/quasi-military ranks: Military members and those belonging public organizations arranged on quasi-military lines (e.g. police/fire departments) are given their rank title before their name (e.g. General Jones, Sergeant Smith, Inspector Green, Firefighter Brown) and addressed by title or abbreviated title (e.g. lieutenant colonel as colonel, deputy inspector as inspector).
Religious: “Father” for Catholic (and some Anglican) priests, “Monsignor”, “Bishop”, etc. for ranking clergy, and “Deacon”, “Brother” and “Sister” where appropriate. (I know that there are formal titles for Bishops, etc., but I strongly doubt that any Bishop would object to being called such by a non-Catholic or an ordinary parishoner.) Usually “Reverend” for Protestant ministers, though this may vary. “Rabbi” or “Cantor” for those Jewish clergy. I’m not sure about Moslem or other clergy, which can vary.
Medical/Adacemic: “Doctor” for medical professionals with doctoral degrees and some academics with doctoral degrees who wish to be referred to as such. “Professor” for professors (whether full, associate, or assistant) who wish to be referred to as such. Note that the title Doctor (or Dr.) is never used before a person’s name when that person’s academic degree is listed afterward (e.g. M.D., Ph.D., D.D.S.). Note that lawyers with a J.D. degree are not referred to as doctor unless they otherwise would qualify for the title (medical degree as well, etc.).
Everyone Else: Mr./Miss/Mrs./Ms., as appropriate, except that a person may be referred to by a specific title given by an organization (e.g. President, District Chairman, Vice Commodore, etc.) within the context of that organization.
After the name: (note that with any titles listed after the name, you omit Dr./Mr./Miss/Mrs., but retain other pre-name titles)
Academic degrees: Most commonly Ph.D., or a health care degree like M.D., D.D.S. M.S.W. (master of social work), etc., and sometimes M.B.A., but in academic situations, all degrees may be listed out.
Licensed Professionals (other than attorneys): Designation from state licensing agency: C.P.A., R.N., P.E. (professional engineer), R.A. (registered architect), etc.
Attorneys: Commonly given the honorific “Esq.” in the U.S. In some jurisdictions (not all) professionally referred to as Attorney John Jones.
Organization giving rank: When someone has a rank title before his or her name, one may abbreviate the organization in which that person holds the rank (and designate retired, if appropriate) after the name (e.g. Capt. Jane Jones, U.S.N. (Ret.), Inspector Samuel Smith, N.Y.P.D.)
Designations given by private organization: Many professional organizations give titles and designations with abbreviations that one may use professionally such as C.F.P. (certified financial planner). One would generally not need to know what these are except within one’s field.