You didn't say how old your chameleon is or if its a male or female.

Its in a lot of trouble from the description you gave of its behavior. If its still alive, it needs a vet NOW if its going to have any chance at all of surviving.