If in doubt, refer to the documentation which came with your motherboard, which should tell you exactly where to connect these items.
Different computer cases may have slightly different I/O connections, but generally both the connectors and motherboard headers are labelled, so use these to your advantage when working out where to plug each cabling connector! If in doubt, refer to the documentation which came with your motherboard, which should tell you exactly where to connect these items.