Test if your remote works by viewing it through a digital camera. (A phone camera works well.) View the front of the remote on the camera's digital display while holding down any of the buttons on the remote. If your remote is working you will see an RF light coming from the front of your remote. (You can only see this through the digital camera. The human eye cannot see the RF signal on its own.) If you don't see the RF try changing the batteries with known good batteries and try again. If you see the RF but your remote doesn't seem too work it needs to be reprogrammed.
Here are the steps for programming the remote to work with my Samsung TV and other brands.
1.) Turn the TV on.
2.) On the remote control hold down TV Power+01 at the same time. If the TV turns off the controller is programmed. If not, try TV Power+02, +03, +04, +05, +06, +07, +08, +09. Different TV BRAND??? ...TRY the codes listed for other TV brands located on the last page of this link.