The message of Thomas Paine's "Common Sense" was that Americans did not need a monarchy to rule them nor needed to be controlled by Britain. He was trying to urge American colonists to fight for independence against Britain.
Spain wanted to retrieve the islands of Menorca and Gibraltar from the British as it had been a long term goal of theirs even after their ruler died.
This ended with a British lost.
Hope this helps!