I need help please!

I am wanting to get my husband and I checked to see if every thing is okay with us because we have been trying to find out why we haven't came out pregnant. I have gone to the doctor before and they said that my painful periods could be the reason why I haven't came out pregnant but they said also said that it could be because my hormones or so out of wack that it could also be the reason to but other then that they haven't found a reason why i havent. My husband on the other hand wants to get tested to see if maybe it is him.... My question to you is where do i go to get tested? How much does it cost about?