Who tried to buy Texas from Mexico?

The U.S.A..Before Texas won its freedom America tried to by from Mexico but Mexico wouldn't sell.