Rear signal lights out, bulbs good

Your taillights work, if I understand your post. Turn on the head lights and have someone observe the tail lights. Step on the brakes and if the tail lights go out, then you have a broken ground wire.