Icemaker door flapper won't close

The little flapper door that lets the ice out of the icemaker drawer won’t shut or open. I can’t get ice out other than to pull out the drawer. What can I do to fix it?