You need to have a clear idea of what the ending implies and work backward to build the plot. It's all about creating suspense and making the reader curious about how things got to that point.
Starting a story at the end can be tricky. You have to drop enough hints and clues to make the reader want to know the backstory. Maybe start with a powerful image or emotion from the end and then weave in the details as you go along.