Help with getting the TWI running

Not able to get the TWI working properly. Anyone have any snippets ?