Segmentation splits a mixed market into groups that react differently to your marketing. The classic ways to slice: demographic (age, income, family stage), geographic (metro, tier-2, rural, which matters unusually much in India), psychographic (values, aspirations, lifestyle), and behavioural (when they use it, how loyal they are, how price-sensitive, what benefit they're after). The best segmentations usually start with behaviour or need, then bring in demographics only to find that group in the media.
A segment is only worth anything if it passes five checks. Can you measure it (how big is it, really)? Is it substantial (big enough to bother with)? Is it accessible (can your channels actually reach it)? Is it differentiable (does it respond differently from the others)? And is it actionable (can your mix genuinely serve it)? Segments that fail these are astrology, not strategy.
Targeting is the investment call. Given those segments, where do you actually play? The options run along a range. Concentrated: one segment, all-in, which is usually the challenger's best move. Differentiated: several segments, each with its own tailored mix, which is expensive and suits players with scale. Mass: one mix for everyone, which only category kings like salt and matchboxes ever earn.
Positioning then plants your flag in that chosen group's mind, and it gets its own concept page. What STP adds is that it makes positioning answerable at all. You can't decide what to stand for until you've decided who you're standing for.