Hang on, is this going in a house or an IS? :D
The two wires coming in will usually work either way round. They connect to points A and B in your NTE5 LineBox. On a normal "Master" socket they connect to pins 5 and 2 respectively.
If you have a multimeter you can put them the right way round anyway. Set it to a volts DC range and put it across the two wires. Then:-
If you get -48V, the wire on your black probe is A, the one on the red probe is B.
If you get 48V, the wire on your black probe is B, the one on the red probe is A.
The Master socket will extract the ringing current and present it on pin 3. If this is missing, some telephones won't ring when you call them.
Between Master and Secondaries all you need are pins 2 (blue, white bands), 3 (orange, white bands) and 5 (white, blue bands). Others are unused but can be connected just for neatness.
Lots more info here.