In general, you should just call a bet when you have a decent hand, but one that isn't quite strong enough to raise with unless you're turning your hand into a bluff. In some cases, you might have a decent hand such as middle pair but are concerned your opponent has you beat.