First, you should examine the cat to be sure that there are no obvious injuries. Then, if you cannot find any, it would be best to seek the advice of your vet.
This depends on what's wrong with the cat. Make sure the cat has a warm, comfortable and private place where it can get some rest. Keep its water fresh.