The standard way to answer is STAR: Situation, Task, Action and Result. Careers services describe it in much the same way. The University of Reading says the Situation sets the scene, the Task explains what needed doing, the Action should be the most detailed part and focus on your own efforts, and the Result includes the outcome and what you learned. The National Careers Service adds that your examples can come from work, home or volunteering, and that you should keep them short and to the point.
Two habits matter most. First, say "I" for what you did: the University of Cincinnati advises focusing on your individual contributions, even when the work was a team effort. Second, finish the story. The same service says to highlight what you accomplished, learned or how you grew, even when the result was not ideal. The STAR method page goes further, with more examples and a practice tool.