Rear brake: either needs a bleed or take wheel out, pump pistons out, reinsert wheel. If still spongy, bleed.
Front brake: Put wheel in, loosen caliper bolts (or attach them so they just have a tiny bit of movement with your fingers). Spin wheel, gently stop wheel with front brake. Once stopped, lock front brake firmly, then half a turn at a time, tighten each bolt.
Usually works, if not the rotor is a bit warped usually and it will take some more fettling or doing by eye.
Can also buy a caliper alinmnet tool (or you used to be able to) which was pretty damned useful.