Since your speaker works you would have one of two conditions. First, your head unit may not be working or you have a break in the wiring. If it is the latter, then the break will most likely be at the door boot where it gets bent all the time. If you have an olm meter you can remove the head unit and check continuity on the wiring that way. If it checks out, then it is the head unit.