The Texans were fighting the Battle of Gonzales to keep their cannon. They needed it to defend against the natives and they were worried Mexico would ask for more if they got their hands on the cannon. The Battle of the Alamo, on the other hand, was fought because Santa Anna wanted revenge. Texans had defeated Mexican forces at previous battles and they were not happy. But they both played a part in the Texas Revolution and were fought because Texas wanted its rights.
Who were the main leaders in each battle?
At Gonzales the colonists won. When the Mexicans realized the colonists were firing at them they ran away as fast as they could and Gonzales was welcome to keep their cannon. At the Alamo the Texans lost. All of the Alamo fighters were killed and few others were left alive. Santa Anna's army outnumbered them.
After the Battle of Gonzales, Mexico was enraged. They were wondering how a small band of colonists dared to defy them. Mexico was also worried that this event might cause others to rebel. At the Battle of the Alamo, Santa Anna was quite smug that his army had finally won a battle. They were also letting their guard down which resulted in a victory at San Jacinto.
At the Battle of Gonzales the mayor was Andrew Ponton, who refused to give up the cannon without written orders. General Ugartechea was commander of the Mexicans. John Henry Moore was the commander for the Texans and might have helped design the "Come and Take It" flag. At the Alamo William B. Travis was in charge. He wrote "Victory or Death." The fighters included everyone from Davy Crockett to James Bowie. They were against Santa Anna's army.