OK it is debug time.
First off check that each segment is controllable independently.
Write a sketch that just puts one segment on and check it is right. Repeat for all 7 segments. Maybe you could write a sketch to to that all in one go but I am assuming you can't.
int totest = 2;
void setup(){
pinMode(totest, OUTPUT);
digitalWrite(totest, HIGH);
}
void loop() { }
Change the number assigned to totest one at a time until you have covered all the segment pins.
If that works then it is a software error you have made, if it doesn't then you have a wiring error.