if you walk the tide line on a incoming tide on lug beds you'll find worms popping out the tops of casts occasionally. the worms move around on the sand bed once the tides up to move further along the beach or once they've finished with the current burrow they're in. they dig a burrow, consume microbes in the sand they're processing, move a few inches along the sand bed and repeat. fish take advantage of the period of moving to a new burrow and eat the worm.
also, during storms breakers smash the beds up exposing worm and washing them around, hence you find lug on the shoreline after a proper strong blow.
even species of lugworm used are massive factors if you're going to catch or not. perfect example I have is a mark I know locally to me, the only bait that will work is Fresh Blow lug. fresh blacks don't work, rolled blacks don't work, fresh out yellow tails don't work. but as soon as you put on 2 blow lug you'll catch a 4/5lb bass within 10 minutes. I had 14 in one session here smallest fish being 42cm, out of 10 sessions id blank maybe once and the other 9 id have minimum 2 fish well above minimum size.
there's a lot of factors that influence how well a session goes, and bait is important but its definitely not the only thing. the tide state & strength, weather that day and leading up to the day. food available in the area in the particular season... there's a lot of factors.