There are two problems here. First is that you can't apply L'Hospital's Rule on $$\frac{x}{(\sin x)/x}$$ because the denominator $(\sin x)/x$ does not tend to $0$. Second is that one can easily apply L'Hospital directly on $x^{2}/\sin x$ to get $2x/\cos x \to 0$ as $x \to 0$.
Before applying L'Hospital's Rule one must check the conditions for its applicability (BTW most beginners don't follow this advice and just differentiate and plug to get rid of the "damn" limit problem).
Even after checking the conditions of applicability of L'Hospital's Rule on $f(x)/g(x)$ it is possible that the resulting expression $f'(x)/g'(x)$ does not have a limit. Or even worse the expression $f'(x)/g'(x)$ is complicated so that you don't know if this has a limit or not and you don't want to apply the rule second time because it may lead to even more complicated function $f''(x)/g''(x)$.
It is never a good idea to apply this rule directly (except for simplest limit problems). It is better to simplify the expression $f(x)/g(x)$ by algebraic manipulation and the use of standard limits and then apply the rule so that the expression obtained after applying the rule is simpler as far as limit evaluation is concerned.
Also you may get a problem where the ratio $f'(x)/g'(x)$ does not have a limit and yet $f(x)/g(x)$ has a limit. In such cases the rule is useless (but you can't know this before applying the rule) and then you need other methods like standard limits, Squeeze theorem, Taylor's series.