Generally, you have to understand the basic endgames before it makes sense to work on middlegames.
For example, there's no point learning about pawn weaknesses and isolated pawns - if you don't know the endgames surrounding converting or holding draws with or without the extra pawn (eg. rook + pawn vs rook). Or even worse... just simply blunder your pawn advantage away. Often knowing your endgames will steer or drive your middlegames because you know what destination you're trying to head toward (ie. simplification, or opposite coloured bishop endgame, etc).
At your rating level, I'd honestly say that endgames and tactics will be the best use of your time until you're at least 1300 before I'd start shifting focus to middlegames.
The pay-off for just continuing to level up on Endgames and Tactics is just too great at this stage IMHO.
As for a basic middle game book - How to Reassess Your Chess by Silman is a good intro to the subject. Would recommend it. It's easy to work through.
I am working on the endgames with a chess coach and I have a few openings down. However, knowing what to do in the middlegame (when material is equal) is hard for me. Any tips?
(I also struggle with opposite side castling.)