First thing to do is make an appointment for a check up with the vet. Many medical problems can cause behaviour like that. And the longer the behaviour is allowed to continue the more it becomes a habit and hard to change even after the medical problems are solved. Time is of the essence.

Keep us posted as to what happens.