You can ask your doctor about heavy metal tests, but I will tell you that the tests are unreliable at best. I suggest you do a little research about heavy metals and consider possible exposure to them (while keeping in mind all the unknown possible sources of exposure). In my case my trouble came as the result of mercury from my silver fillings. That is the most obvious first question for you to consider. Do you have or have you ever had silver fillings?
I suggest you google a list of commonly described heavy metal symptoms and see if you have many of them. The symptoms are extremely variable, so don't expect to have all of them, all at once.
If metals seem to make sense in your case, then you should replace silver fillings if you have them and consider ways to chelate the metals out of your body.