Many things can cause this, and you should call out your vet asap, but the one I would worry about from the symptoms you described is Blackleg (Clostridial Myositis) - caused by the soil-borne bacterium, Clostridium chauvei. The disease develops rapidly in affected animals and often deaths occur before the owner has noticed any sickness in the herd. Often no symptoms are observed; At other times, high fever, lack of appetite, depression, lameness, swelled head, and swellings that appear in the muscles on various parts of the body. Sometimes the leg muscles are involved, or the muscles in the region of the back, hip, flank, chest or shoulder. In the latter stage of the disease, these swellings spread and become quite mushy, producing a characteristic crackling sound when pressed with the hand.

