This a 3 way switch loop if you were able to turn the lights on or off from either switch. Is that correct? Take down the light fixture and take a picture of the wires inside the electrical box. Thats the only way to help you since you say you know nothing about this.
You SHOULD have made a drawing of the connections BEFORE you took them loose. Now, you have created a problem that did not exist.
You SHOULD have made a drawing of the connections BEFORE you took them loose. Now, you have created a problem that did not exist.