Have you oiled the valves with a quality valve oil. Is the trumpet brand new? Make sure the valves are well oiled and that you have put them in the casing correctly.
I've found that some horns have a certain "break in period". Some horns valves are a little sticky at first even if you put quality oil on them (Al Cass being my favorite). I've actually used Blue Juice and it almost works better, but I still feel safer using Al Cass.
If you just baught a brand new horn you need to bathe the heck out of it. New horns from the factory have alot of crud left over when it is being made. There are alot of oils to choose from, synthetic oils are pretty good if you use them properly. FatCat and Blue Juice and pro oil from Zaja music are a few. Go clean your horn! Best of luck.
new horns still have small metal pieces in them, that you can't see. wash and oil your valves a lot so yo uget everything nice and clean. after that you should have no problem...unless it's jsut a crappy trumpet. NOTE: if you are going to get a new trumpet, try out a good amount of them before u buy, because every horn is different.