The question give was "consider the Ito integral: $\int_0^T sin(B_t)dB_t $ ."
I thought I had to use Ito's formula which is: $df(B_t)= f'(B_t)dB_t + \frac{1}{2} f''(B_t)dt $ hence I got: $sin(B_t) = \int_0^T cos(B_t)dB_t - \frac 12 \int_0^T sin(B_t)dt $
But the answer given was $1 - cos(t)$ which was done by integrating Sin. So I don't understand why wasn't Ito's formal used?
Your answer $1-\cos(t)$ can not be correct as the integral to be calculated is a stochastic integral. Using Ito's lemma with $f(x) = \cos(x)$ you got $$\mathrm{d}\cos(B_t) = -\sin(B_t)\,\mathrm{d} B_t - \frac 12\cos(B_t)\,\mathrm{d}t.$$ Now integrating both sides from $0$ to $T$, can you conclude?