This is a question I get asked at least once a day. Or at least every single time a new person finds out I'm an author. There are a lot of ways, but the ones I've listed have always been my tried and true ways of coming up with a story idea or plot line.
You can also find story prompts at self-publishingschoo.com