You can purchase train tickets via the DSB smartphone app, from ticket machines at train stations (payment card or coins) or from 7-Eleven stores located at the larger stations, such as Vejle Railway Station. See the 7-Eleven opening hours here