If the stones are loose and popping out, then you may need to replace the foundation underneath. If that's the case, then you need to remove all of the stones and repour a new foundation and lay the stones down.
Click the picture below to see examples of people laying
their own stone. Sign up for my free newsletter
to the left and
I'll put your flagstone
creation in my newsletter.