Three quick-fire first half tries secured a 24-12 victory for Wigan over rivals St Helens at a sunny Langtree Park.