Usually, this is a simple match-the-colors exercise. Standard telephone cable has four conductors, usually Red, Green, Yellow and Black. Most jacks will be labelled for which color connects to which terminal. At the other end of the cable, match again to hook them into your existing wiring. (Red and Green are the first phone line. Yellow and Black are the second line, if one is hooked up.) If you have "category-class" wire, which carries more conductors, the color codes are different; I'd have to look them up to check what maps to what. Of course running the wire, and mounting the jack, are a separate question.