How to get rid of Nematods in my garden?

We have tried for several years to get rid of Nematods in our raised garden. The soil is from bags of potting soil and we can't seem to get rid of them and don't know where they came from. HELP