Depends on what the wig is made with. If it is synthetic, use only products made for wigs. I use Revlon Texturing Cleaner and Conditioner. Never use a curling iron, just hot rollers.
If it is human hair, use only gentle shampoos and conditioner.
Brush it out before washing and follow the directions on the bottle.