The most obvious method is the one people skip: retrace where you found it. Your browser history, download folder, purchase emails and platform library will usually contain the answer already.
If that fails, describe what you remember on a dedicated "identify this game" forum. Genre, era, art style and one distinctive mechanic are enough for someone to name it.