Check the motherboard manual. Motherboard manuals typically have a diagram of the motherboard showing various connections. Some manuals might even have an explanation. Most of the front panel cables are typically plugged into connections at or near the bottom front of the motherboard with one exception. The HD audio cable is usually plugged into a connection somewhere near the bottom rear of the motherboard. I can't guarantee that because not all motherboards are identical.
I had this vey same problem lol, i had to remove my motherboard to replace my CPU cooler so i pulled out all the cables that went into the motherbaord, i pulled one out and it instantly split into 6 individiual cables scared the hell out of me lol.
If you look on your motherboard manual you will find a picture of where to put the cables, if you get them in the wrong order i dont believe you will cause any damage, just the pc wont turn on as i put them in the wrong order about 10 times lol
To be honest, you kind of chose the wrong root cause for your query. You should have posted in the motherboard section with your mobo and case and asked for help, along with a link to an online copy of your mobo's manual so we can more easily help you out.