You can say what was responsible for something, or what caused it, using "thanks to ___".
This phrase works best for talking about the cause of something good:
We've raised over $130,000 thanks to your help and donations.
I can watch thousands of movies and TV shows instantly in my living room thanks to this device.
But there are also times when you use this phrase to talk about the cause of somethingbad:
We had to re-do our entire bathroom and hallway floors thanks to that water leak.
We missed the first half thanks to the traffic.
You can use "thanks to ___" to say that a person was responsible, or a thing:
I know how to do it thanks to you.
She's in much better shape now, thanks to the dance classes she's been taking.