Have a topic of interest to discuss. It's also great to have an activity/interest in common.
Other than that, just read widely and maintain an interest in current affairs, arts, sciences... etc...
Or small talk works too. But I think if it really is that hard to continue the conversation, then maybe there's really nothing to talk about. Even long time friends sometimes walk with one another in silence...