How do you get good at it? I think my inability to maintain a conversation stops me approaching people
Listen more than talk, and ask questions about them. Find areas of mutual interest to talk about.
Listen and then ask specific questions about what they talked about to show you heard.