One of my favorite ways to use a metronome is to set it at a slow, comfortable tempo for whatever music I'm working on. When I can hit the notes and rhythm consistently, I begin incrementally notching up the speed until I reach the tempo needed to perform the piece. This is like stepping up a staircase. It's difficult to jump a whole flight of stairs, but if you take it one stair at a time, then it's easy to reach your goal.
Another exercise you can practice often is to turn on the metronome and then clap different rhythms. For example, you can set the metronome to represent a quarter note = 60 and clap one quarter note per beat, then clap it as eighth notes, sixteenth notes, or challenge yourself with more other beat patterns like triplets, quintuplets, sextuplets, or septuplets. To give yourself an even stronger challenge, alternate rhythms from one beat to the next!
One of the most helpful things a metronome does for a musician is help them to develop their own sense of internal rhythm. When you practice consistently with a metronome you can learn to internalize a steady beat for any music you learn. There are more ways to use a metronome in your practice and you're free to experiment with them. A free online metronome can be found at https://www.metronomeonline.com.