Make sure the litter tray is easily accessible to your cat, but not right next to their food and water. It can help to confine the cat to the room where the tray is until they have used it, before letting them have access to the rest of the house.
Gently placing your cat into the tray so they can sniff and scratch the litter may help (especially with kittens).