Start by talking to people you have on interest in talking to. Don't approach an attractive member of the opposite sex or a businessperson. Instead, say hello to an elderly person you normally wouldn't look twice at.
Or try to make cashiers laugh. Brighten up people's day. If you just talk consistently, you'll get better. Talking to people is a skill like any other.