I'm having gas pains in my neck and lower back from doing a tubal ligation a week ago. Is there anything I can do or take to help with it?

Pain medication. From your profile it appears you were given Percocet which is a very strong pain medication. If a strong drug like that is not controlling your pain you should be seen by your surgeon. Gas x is good for gas.