Sofia Vergara, 45, shows off her long legs and toned tummy as she poses in her pants for a saucy new lingerie campaign