は is used as the subject marker so the first sentence would be "The tea won't drink" which sounds weird because tea shouldn't be able to drink anything
を is used to mark the object which the verbs acts on so the second sentence would be "I won't drink tea" which makes much more sense. I added an I in the beginning of the sentence because the japanese sentence did not have a subject (I/he/she/it/they) which is a natural thing to do in japanese.