Why do you pass a number to the dash, dot and blank functions and never use it?
Why do you declare these functions as returning an int and never return anything?
When you say it doesn't run, do the lights flash at all? If not then your wiring is wrong. If it flashes noncense then that is because it is doing exactly what your code says, which is wrong.