The first thing you need to do is get the cat to a vet to rule out a Urinary Tract Infection. Cats can't tell you when there is something wrong, so they have to SHOW you.