Ambiguous terms sometimes appear in the written contracts and require legal interpretation. Who in the legal system usually does the interpreting?

Ambiguous terms sometimes appear in the written contracts and require legal interpretation. Who in the legal system usually does the interpreting?