There is no way to tell over the internet what is wrong or even what may be wrong. It could be an illness, a bacterial infection, a disease or an internal injury etc.
Please use this Find an Avian Vet link to find an avian vet to examine your bird in person and prescribe according to what is for sure wrong.