I would suggest a trip to the vets. A pig needs to have hay making up 80% of it's diet as a minimum. It may have stopped eating hay because it's having problems with it's teeth. Make sure it gets some good veggies today - leafy ones will be beneficial - maybe some parsley, some lettuce, some carrot tops, and take him/her to the vet tomorrow to get the teeth looked at.