In the cell membrane of the intestinal cells, there is a mobile carrier protein called Sodium Dependent Glucose Transporter(SGLT1).It transports glucose and galactose to inside the cell using energy.The energy is derived from sodium-potassium pump (Primary Active Transport).How it is possible cause we need energy in Na-K pump too ?
From my initial reading on this, the SGLT1 does not itself directly use energy in the form of ATP. https://en.wikipedia.org/wiki/Sodium-glucose_transport_proteins It appears the uptake of the sugars by this protein are achieved by cotransport. In this case, they "hitch a ride" into intestinal epithelium by following the flow of sodium ions back into the epithelial cells. The reason the Na+ ions flow into the epithelial cells is because of their higher concentration outside the cells. This concentration gradient is created and maintained by the Na-K Pump. So, ATP is used to create a chemical gradient, higher [Na+] outside compared to inside. Then the natural flow of Na+ down its gradient "drags in" the sugars.