The tension in the string (it's horizontal component) is providing the centripetal force.
The vertical component of the tension balances the weight of the toy.
It's these two components that the sin and cos come from.
You should have Tsin theta and Tcos theta in those equations.