This video shows how I fixed a Glacier Bay push button toilet that wouldn't refill sometimes after a flush. This would leave the tank empty so the toilet would not flush the next time. It was resolved by replacing the fill valve.
Link to the replacement fill valve I used:
https://amzn.to/3heH3bz