To echo what others have said: your gearing is fine; just keep going up and eventually you'll get there. There is no shame in stopping and taking a break, or even walking part way up. Many of us have been there and done that.
Part of doing hills is psychological. If it's a longer climb, it can help to break it into small chunks rather than looking all the way to the top. This can also help for keeping track of where you run out of steam, which can help with pacing the next time.