"Ты говоришь по-русски?" is a spoken form of the question. It is OK when pronounced with proper intonation stress on "говоришь", which can not be marked in written text by standard means.
"Говоришь ли ты по-русски?" is a literary form which makes written text easier to read by helping readers avoid ambiguous treatment. Particle "ли" emphasizes previous word.