Apply an image to a box

I have a cube that I want to apply a graphic to the front and back faces of the box but when i used the ApplyPlannarMapping command nothing happens. How do apply a ‘decal’ to the faces?