dont know if they are male or female but i connected them both.
Good. As a general rule, if it's got a power connection, it should be plugged in. The only exception I can think of is with some SATA drives that have both a SATA and Molex connector, and in that case only, you use one or the other.
Male and female connectors: male goes in, and female accepts. If you have an understanding of the birds and the bees, just apply the male and female application there to your computer power connections.
why would the psu cause the graphics to overheat whiles playing games?
Your computer parts require a certain amount of power. If they don't get that, it makes them work harder to stay afloat. If they get too little power, they'll just stop working until they get enough juice. Straining will build up heat as well.
it is a 350w psu. what does this mean?
The wattage is a sum of the +3.3V, +5V, +12V lines---referred to as rails. Sometimes the -3.3, -5, and -12V rails are included, but those are typically unimportant and add very little to the total wattage. Different components draw off the rails for power.
i built the computer myself just thought any psu would do..
Nope, not these days. Power requirements have become a major factor, as well as a quality PSU to handle the equipment. The rails I mentioned are important, as that's a big thing to look at. The +12V is the most important as the CPU, SATA hard drives, and PCIe video cards draw off that. Additionally, if a video card has a power connector on it, it draws off the +12V rail. Fans that run directly off the power supply also use the +12V. You'll notice that the CPU and video card are the biggest power eaters in the system.
A little bit more in-depth write-up is had in
The Power Supply Sticky.