You cannot, at least not without some kind of anchorage.
Fliers fly in a reference medium (air) and they are displaced with it.
Even modern planes have very different flight times when flying Europe to USA or vice versa, due to prevailing winds at cruise altitude.
Without engines an airship will soon (after inertia has been overcome) travel with the wind and cannot use it for anything, regardless of shape and possible "sails".
Not only you cannot "sail into the wind", but You can't even deflect a few degrees from wind direction.
Current fliers go where they please because engines move them with respect of surrounding air.
To use the force of the wind you need some kind of anchor to ground and some form of "rail" performing essentially the same function of a ship's keel.
Think of a kite: it flies while you provide traction on the rope; if you let it go it will fall like a dead leaf.